Function at 0x402ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x91
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x4203fc
call edi
lea ecx, [ebp - 0x18]
call edi
lea ecx, [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
lea ebx, [ebp - 0x30]
call fcn.0041bb40
cmp eax, 1
jne 0x402d17
movzx esi, byte [ebp - 8]
mov eax, dword [ebp - 0xc]
neg esi
sbb esi, esi
xor ebx, ebx
and esi, 0xfde9
sub eax, ebx
je 0x402b82
dec eax
je 0x402b61
mov esi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
call esi
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x1c]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x425630]
push 0x38
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x402ba9
mov ecx, dword [ebp - 0x10]
push esi
push ecx
push eax
call fcn.00418980
jmp 0x402bab
mov edx, dword [0x425630]
push 0x40
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x402ba9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push esi
push ecx
push edx
mov edx, dword [ebp - 0x14]
call fcn.00402a20
jmp 0x402bab
xor eax, eax
mov esi, eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x64], 0x420220
mov dword [ebp - 0x60], 0x8f
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x68], 0x42074c
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call edi
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
test ecx, ecx
sets dl
lea ecx, [ebp - 0x6c]
push ecx
push ebx
mov byte [ebp - 0x3c], dl
mov edx, dword [ebp - 0x54]
push edx
push 0x40ad30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x190
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402c23
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
xor eax, eax
test ecx, ecx
setne al
inc eax
jmp 0x402c2e
push edi
lea ebx, [ebp - 0x68]
call fcn.0041bb40
xor ebx, ebx
cmp dword [esi + 0x28], ebx
jbe 0x402cdc
cmp eax, 1
je 0x402c54
push 0x24
push 0xa6
call fcn.00415b10
add esp, 8
cmp eax, 6
jne 0x402cdc
push 0x206
lea eax, [ebp - 0x28a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x28c], dx
call sub.MSVCRT.dll_memset
mov edx, dword [esi + 0x14]
mov edx, dword [edx + 4]
mov ebx, dword [esi + 0x28]
xor eax, eax
add esp, 0xc
lea ecx, [esi + 0x14]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x34], eax
push 2
lea eax, [ebp - 0x34]
push eax
call edx
mov edi, dword [esi + 0x1c]
push 0x104
lea eax, [ebp - 0x28c]
push eax
push 0x8f
call fcn.0041d910
add esp, 0xc
lea ecx, [ebp - 0x28c]
push ecx
push ebx
mov edx, ecx
push edx
push ebx
push edi
call fcn.0040f4b0
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
call fcn.00402e80
jmp 0x402cef
mov edx, dword [esi + 0x10]
test edx, edx
je 0x402cef
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x402cef
call fcn.004155d0
mov edi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
lea ecx, [ebp - 0x38]
call edi
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], 0x420458
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x402d1d
mov edi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
lea ecx, [ebp - 0x10]
call edi
lea ecx, [ebp - 0x14]
call edi
lea ecx, [ebp - 0x18]
call edi
lea ecx, [ebp - 0x1c]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4