Function at 0x51c5b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ee02
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x68b740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], ecx
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 0x8840]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp + 8]
mov dword [edx + 0x8814], eax
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x8818], edx
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x881c], ecx
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x8840], eax
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x8844], edx
mov ecx, dword [ebp - 0xe8]
call fcn.0051e3c0
mov ecx, dword [ebp - 0xe8]
mov dword [ecx + 0x8854], eax
mov edx, dword [ebp - 0xe8]
mov eax, dword [edx + 0x8818]
push eax
push 0x641178
push 0x645dd0
mov ecx, dword [ebp - 0xe8]
add ecx, 0x1ba
push ecx
mov edx, dword [0x6de314]
push edx
call fcn.00538d00
add esp, 0x14
mov eax, dword [ebp - 0xe8]
add eax, 0x8840
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x20], 0
je 0x51c7da
mov ecx, dword [ebp + 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x51c7da
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
test eax, eax
je 0x51c7da
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [ebp - 0xec], dl
cmp byte [ebp - 0xec], 0x2c
je 0x51c6eb
cmp byte [ebp - 0xec], 0x3b
je 0x51c758
jmp 0x51c7cc
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
mov edx, dword [ebp - 0xe8]
lea ecx, [edx + ecx + 0x8820]
call fcn.004f5440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
jmp 0x51c7d5
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x1c]
shl eax, 4
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx + eax + 0x8820]
call fcn.004f5440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jmp 0x51c7d5
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x51c6bb
mov edx, dword [ebp + 0x1c]
push edx
mov ecx, dword [ebp - 0xe8]
call fcn.0051d8e0
cmp dword [ebp + 0x18], 0
jbe 0x51c826
mov eax, dword [ebp - 0xe8]
mov byte [eax + 0x1b9], 0
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [0x6de088]
push edx
push 0x51d350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xe8]
mov dword [ecx + 0x2c0], eax
jmp 0x51c8a4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x100], edx
cmp dword [ebp - 0x100], 0
je 0x51c84c
cmp dword [ebp - 0x100], 0
jle 0x51c8a4
cmp dword [ebp - 0x100], 2
jle 0x51c897
jmp 0x51c8a4
mov eax, dword [ebp - 0xe8]
cmp dword [eax + 0x8840], 0
jne 0x51c888
mov ecx, dword [ebp - 0xe8]
cmp dword [ecx + 0x8844], 0
jne 0x51c879
push 0
mov ecx, dword [ebp - 0xe8]
call fcn.0051c970
jmp 0x51c886
push 3
mov ecx, dword [ebp - 0xe8]
call fcn.0051c970
jmp 0x51c895
push 1
mov ecx, dword [ebp - 0xe8]
call fcn.0051c970
jmp 0x51c8a4
push 2
mov ecx, dword [ebp - 0xe8]
call fcn.0051c970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c