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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fb08
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x43f5c8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x43f5c8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
je 0x403e93
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 0x403e93
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]
jmp 0x40418d
cmp dword [ebx + 0x54], edi
je 0x40418a
mov ecx, dword [ebx + 0x10]
lea edx, [ebx + 0x48]
cmp dword [ecx], edx
jne 0x403eba
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 0x403edc
mov ebx, dword [ebx + 0x54]
push ebx
call fcn.0040c1f0
add esp, 4
cmp eax, 0xffffffff
je 0x40418a
movzx eax, al
jmp 0x40418d
mov dword [esp + 0x70], edi
push 8
mov dword [esp + 0xa4], edi
call fcn.0040def0
add esp, 4
cmp eax, edi
je 0x404286
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 + 0xa0], 1
mov edx, dword [ebx + 0x54]
push edx
call fcn.0040c1f0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x404176
jmp 0x403f52
xor edi, edi
mov eax, dword [esp + 0x84]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x4041b1
lea esi, [eax + 1]
cmp esi, 0xfffffffe
ja 0x4041b1
mov ecx, dword [esp + 0x88]
cmp ecx, esi
jae 0x403f8b
push eax
push esi
lea ecx, [esp + 0x78]
call fcn.00405aa0
jmp 0x403fa6
cmp esi, edi
jne 0x403faf
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], edi
cmp ecx, 0x10
jae 0x403fa3
lea eax, [esp + 0x74]
mov byte [eax], 0
mov eax, dword [esp + 0x84]
cmp esi, edi
seta cl
test cl, cl
je 0x403fef
mov edi, dword [esp + 0x74]
mov ecx, 0x10
cmp dword [esp + 0x88], ecx
jae 0x403fcc
lea edi, [esp + 0x74]
mov dl, byte [esp + 0x14]
mov byte [edi + eax], dl
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], esi
cmp dword [esp + 0x88], ecx
jae 0x403feb
lea eax, [esp + 0x74]
mov byte [eax + esi], 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00404b10
mov esi, eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0xa8], 2
call fcn.00404b10
mov edi, eax
mov byte [esp + 0xa0], 3
call fcn.00405900
mov ecx, dword [esp + 0x84]
mov esi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
call fcn.00405900
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 + 0x24]
push esi
mov esi, dword [esp + 0x24]
add esi, dword [esp + 0x2c]
push esi
push eax
lea eax, [ebx + 0x4c]
push eax
call edx
lea edi, [esp + 0x64]
mov esi, eax
mov byte [esp + 0xa0], 2
call fcn.004010b0
lea edi, [esp + 0x4c]
mov byte [esp + 0xa0], 1
call fcn.004010b0
test esi, esi
js 0x40423b
cmp esi, 1
jle 0x40410e
cmp esi, 3
jne 0x40423b
cmp dword [esp + 0x84], 1
jb 0x40415d
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00404b10
push 1
mov esi, eax
mov byte [esp + 0xa4], 6
call fcn.00405900
push eax
lea edx, [esp + 0x1b]
push 1
push edx
call fcn.0040ce80
add esp, 0x10
lea edi, [esp + 0x40]
mov byte [esp + 0xa0], 1
call fcn.004010b0
movzx edi, byte [esp + 0x13]
lea esi, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004030c0
mov eax, edi
jmp 0x40418d
lea eax, [esp + 0x13]
cmp dword [esp + 0x20], eax
jne 0x4041bb
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.00404b10
mov esi, eax
mov byte [esp + 0xa0], 5
call fcn.00405900
mov ecx, dword [esp + 0x18]
sub ecx, eax
push ecx
push 0
lea ecx, [esp + 0x78]
call fcn.00404a90
lea edi, [esp + 0x34]
mov byte [esp + 0xa0], 1
call fcn.004010b0
mov edx, dword [ebx + 0x54]
push edx
call fcn.0040c1f0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x403f50
lea esi, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004030c0
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00407b90
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004071f0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00404b10
mov esi, eax
mov byte [esp + 0xa0], 4
call fcn.00405900
mov esi, dword [esp + 0x84]
sub esi, dword [esp + 0x18]
lea edi, [esp + 0x58]
add esi, eax
mov byte [esp + 0xa0], 1
call fcn.004010b0
test esi, esi
jle 0x40421b
jmp 0x404200
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 0x54]
movsx ecx, byte [esi + eax - 1]
dec esi
push edx
push ecx
call fcn.0040b660
add esp, 8
test esi, esi
jg 0x404200
movzx edi, byte [esp + 0x13]
lea esi, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004030c0
mov eax, edi
jmp 0x40418d
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x88], 0x10
jb 0x40425d
mov edx, dword [esp + 0x74]
push edx
call fcn.0040cd90
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
call fcn.00404ba0
jmp 0x40418a
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], edi
call fcn.00408030
push 0x43dd08
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.0040ed10
int3