Function at 0x402c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43003a
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x402cc7
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
add ecx, eax
cmp eax, ecx
jae 0x402cc7
mov eax, edx
dec dword [eax]
mov ebx, dword [ebx + 0x20]
mov eax, dword [ebx]
lea edx, [eax + 1]
mov dword [ebx], edx
movzx eax, byte [eax]
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x54], edi
je 0x402fb3
mov ecx, dword [ebx + 0x10]
lea edx, [ebx + 0x48]
cmp dword [ecx], edx
jne 0x402cee
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x20]
mov dword [ecx], eax
mov edx, dword [ebx + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [ebx + 0x44], edi
jne 0x402d20
mov ebx, dword [ebx + 0x54]
push ebx
call fcn.00409f60
add esp, 4
cmp eax, 0xffffffff
je 0x402fb3
movzx eax, al
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x70], edi
push 8
mov dword [esp + 0xa0], edi
call fcn.0040b6a0
add esp, 4
cmp eax, edi
je 0x403081
mov dword [esp + 0x70], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x70]
mov dword [ecx], eax
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], dl
mov dword [esp + 0x9c], 1
mov edx, dword [ebx + 0x54]
push edx
call fcn.00409f60
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x402f9e
jmp 0x402d92
xor edi, edi
mov eax, dword [esp + 0x84]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x402fcb
lea esi, [eax + 1]
cmp esi, 0xfffffffe
ja 0x402fcb
mov ecx, dword [esp + 0x88]
cmp ecx, esi
jae 0x402dcb
push eax
push esi
lea ecx, [esp + 0x78]
call fcn.00404270
jmp 0x402de6
cmp esi, edi
jne 0x402def
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], edi
cmp ecx, 0x10
jae 0x402de3
lea eax, [esp + 0x74]
mov byte [eax], 0
mov eax, dword [esp + 0x84]
cmp esi, edi
seta cl
test cl, cl
je 0x402e2f
mov edi, dword [esp + 0x74]
mov ecx, 0x10
cmp dword [esp + 0x88], ecx
jae 0x402e0c
lea edi, [esp + 0x74]
mov dl, byte [esp + 0x18]
mov byte [edi + eax], dl
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], esi
cmp dword [esp + 0x88], ecx
jae 0x402e2b
lea eax, [esp + 0x74]
mov byte [eax + esi], 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00403690
mov esi, eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0xa4], 2
call fcn.00403690
mov edi, eax
mov byte [esp + 0x9c], 3
call fcn.004041e0
mov ecx, dword [esp + 0x84]
mov esi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
call fcn.004041e0
mov ecx, dword [ebx + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea esi, [esp + 0x20]
push esi
lea esi, [esp + 0x18]
push esi
lea esi, [esp + 0x1b]
push esi
lea esi, [esp + 0x20]
push esi
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x2c]
push esi
push eax
lea eax, [ebx + 0x4c]
push eax
call edx
lea edi, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x9c], 2
call fcn.004010c0
lea edi, [esp + 0x40]
mov byte [esp + 0x9c], 1
call fcn.004010c0
test esi, esi
js 0x40306c
cmp esi, 1
jle 0x402f36
cmp esi, 3
jne 0x40306c
cmp dword [esp + 0x84], 1
jb 0x402f85
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.00403690
push 1
mov esi, eax
mov byte [esp + 0xa0], 6
call fcn.004041e0
push eax
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.0040a870
add esp, 0x10
lea edi, [esp + 0x58]
mov byte [esp + 0x9c], 1
call fcn.004010c0
jmp 0x40303b
lea eax, [esp + 0x13]
cmp dword [esp + 0x20], eax
jne 0x402fd5
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.00403690
mov esi, eax
mov byte [esp + 0x9c], 5
call fcn.004041e0
mov ecx, dword [esp + 0x14]
sub ecx, eax
push ecx
push 0
lea ecx, [esp + 0x78]
call fcn.00403610
lea edi, [esp + 0x4c]
mov byte [esp + 0x9c], 1
call fcn.004010c0
mov edx, dword [ebx + 0x54]
push edx
call fcn.00409f60
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x402d90
lea eax, [esp + 0x70]
mov dword [esp + 0x9c], 0xffffffff
push eax
call fcn.00401f00
or eax, 0xffffffff
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00405ab0
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.00403690
mov esi, eax
mov byte [esp + 0x9c], 4
call fcn.004041e0
mov esi, dword [esp + 0x84]
sub esi, dword [esp + 0x14]
lea edi, [esp + 0x64]
add esi, eax
mov byte [esp + 0x9c], 1
call fcn.004010c0
test esi, esi
jle 0x40303b
jmp 0x403020
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x54]
movsx eax, byte [esi + edx - 1]
dec esi
push ecx
push eax
call fcn.004094f0
add esp, 8
test esi, esi
jg 0x403020
movzx esi, byte [esp + 0x13]
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0xa0], 0xffffffff
call fcn.00401f00
mov ecx, dword [esp + 0x94]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x70]
mov dword [esp + 0x9c], 0xffffffff
push edx
jmp 0x402fae
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], edi
call fcn.004066c0
push 0x43d4e0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.0040c5a0
int3