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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x434e08
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
xor ebp, ebp
push edi
cmp eax, ebp
je 0x4033b9
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov edx, dword [esi + 0x30]
mov ecx, dword [edx]
add ecx, eax
cmp eax, ecx
jae 0x4033b9
mov eax, edx
dec dword [eax]
mov esi, dword [esi + 0x20]
mov eax, dword [esi]
lea edx, [eax + 1]
mov dword [esi], edx
movzx eax, byte [eax]
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x54], ebp
je 0x4036d2
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x48]
cmp dword [ecx], edx
jne 0x4033e0
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [ecx], edx
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
mov edx, dword [esi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [esi + 0x44], ebp
jne 0x403413
mov esi, dword [esi + 0x54]
push esi
call fcn.0040c180
add esp, 4
cmp eax, 0xffffffff
je 0x4036d2
movzx eax, al
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x70], ebp
push 8
mov dword [esp + 0xa0], ebp
call fcn.0040e600
add esp, 4
cmp eax, ebp
je 0x403760
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x1f]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00405bd0
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x7c]
mov dword [ecx], eax
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebp
mov byte [esp + 0x80], 0
mov dword [esp + 0xa8], 1
mov edx, dword [esi + 0x54]
push edx
call fcn.0040c180
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
je 0x4036be
jmp 0x403496
xor ebp, ebp
mov eax, dword [esp + 0x84]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x4036eb
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x4036eb
mov ecx, dword [esp + 0x88]
cmp ecx, edi
jae 0x4034cf
push eax
push edi
lea ecx, [esp + 0x78]
call fcn.00404f70
jmp 0x4034ea
cmp edi, ebp
jne 0x4034f3
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], ebp
cmp ecx, 0x10
jae 0x4034e7
lea eax, [esp + 0x74]
mov byte [eax], 0
mov eax, dword [esp + 0x84]
cmp edi, ebp
seta cl
test cl, cl
je 0x40352f
mov ecx, dword [esp + 0x74]
mov edx, 0x10
cmp dword [esp + 0x88], edx
jae 0x403510
lea ecx, [esp + 0x74]
mov byte [ecx + eax], bl
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], edi
cmp dword [esp + 0x88], edx
jae 0x40352b
lea eax, [esp + 0x74]
mov byte [eax + edi], 0
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x74]
call fcn.00403db0
mov edi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 2
call fcn.00403db0
mov ebp, eax
mov ecx, edi
mov byte [esp + 0x9c], 3
call fcn.00404d10
mov ebx, dword [esp + 0x84]
mov ecx, ebp
mov edi, eax
call fcn.00404d10
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea ebp, [esp + 0x1c]
push ebp
lea ebp, [esp + 0x1c]
push ebp
lea ebp, [esp + 0x1f]
push ebp
lea ebp, [esp + 0x24]
push ebp
add ebx, edi
push ebx
push eax
lea eax, [esi + 0x4c]
push eax
call edx
lea ecx, [esp + 0x34]
mov edi, eax
mov byte [esp + 0x9c], 2
call fcn.00401130
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 1
call fcn.00401130
test edi, edi
js 0x4036be
cmp edi, 1
jle 0x403659
cmp edi, 3
jne 0x4036be
cmp dword [esp + 0x84], 1
jb 0x4036a7
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x74]
call fcn.00403db0
push 1
mov ecx, eax
mov byte [esp + 0xa0], 6
call fcn.00404d10
push eax
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0040cc90
add esp, 0x10
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 1
call fcn.00401130
movzx esi, byte [esp + 0x17]
lea ecx, [esp + 0x70]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00402510
mov eax, esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x17]
cmp dword [esp + 0x1c], eax
jne 0x4036f5
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x74]
call fcn.00403db0
mov ecx, eax
mov byte [esp + 0x9c], 5
call fcn.00404d10
mov edx, dword [esp + 0x18]
sub edx, eax
push edx
push 0
lea ecx, [esp + 0x78]
call fcn.00403d30
lea ecx, [esp + 0x4c]
mov byte [esp + 0x9c], 1
call fcn.00401130
mov eax, dword [esi + 0x54]
push eax
call fcn.0040c180
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
jne 0x403494
lea ecx, [esp + 0x70]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00402510
mov ecx, dword [esp + 0x94]
pop edi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00406d60
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x74]
call fcn.00403db0
mov ecx, eax
mov byte [esp + 0x9c], 4
call fcn.00404d10
mov edi, dword [esp + 0x84]
sub edi, dword [esp + 0x18]
lea ecx, [esp + 0x64]
add edi, eax
mov byte [esp + 0x9c], 1
call fcn.00401130
test edi, edi
jle 0x403628
jmp 0x403740
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x54]
movsx eax, byte [edi + edx - 1]
dec edi
push ecx
push eax
call fcn.0040b660
add esp, 8
test edi, edi
jg 0x403740
jmp 0x403628
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], ebp
call fcn.00407970
push 0x4439b8
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.0040f520
int3