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

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x458290]
xor eax, esp
mov dword [esp + 0x29c], eax
mov eax, dword [esp + 0x2a8]
push ebx
mov ebx, dword [esp + 0x2a8]
push ebp
push esi
mov esi, dword [esp + 0x2b8]
push edi
push eax
mov dword [esp + 0x20], eax
call fcn.00402120
mov ebp, dword [esp + 0x2c4]
xor ecx, ecx
mov dword [esp + 0x2c], eax
sub eax, ebp
cmp eax, 0x15
setle cl
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x48]
push ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], edx
dec ecx
and ecx, 0xb
dec ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x200
call fcn.00406340
add esp, 0xc
test esi, esi
je 0x403b24
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ac8
sub eax, edx
mov dword [esp + 0x10], eax
je 0x403af7
push 0xffffffffffffffff
mov edx, eax
lea edi, [esp + 0x34]
call fcn.004035a0
mov edi, dword [esp + 0x14]
push edi
push esi
push eax
call fcn.0042b530
add esp, 0x10
add dword [esp + 0x38], edi
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x34]
jb 0x403b14
push 0xffffffffffffffff
mov edx, 1
lea edi, [esp + 0x34]
call fcn.004035a0
add esp, 4
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov byte [edx + eax], 0xa
inc dword [esp + 0x38]
push 0xffffffffffffffff
mov edx, 0x10
lea edi, [esp + 0x34]
call fcn.004035a0
mov ecx, dword [str.stack_traceback:]
mov dword [eax], ecx
mov edx, dword [0x44691c]
mov dword [eax + 4], edx
mov ecx, dword [0x446920]
mov dword [eax + 8], ecx
mov edx, dword [0x446924]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
add dword [esp + 0x3c], 0x10
lea eax, [esp + 0x244]
push eax
push ebp
push ecx
call fcn.00404010
add esp, 0x10
test eax, eax
je 0x403d55
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
mov edx, eax
inc ebp
dec eax
mov dword [esp + 0x2c0], ebp
mov dword [esp + 0x20], eax
test edx, edx
jne 0x403c02
mov esi, dword [esp + 0x28]
sub esi, ebp
sub esi, 0xa
push esi
push str._n_t..._t_skipping__d_levels_
push ebx
call fcn.00406230
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x3c], eax
call fcn.00405da0
mov edx, dword [esp + 0x30]
push 0xfffffffffffffffe
lea edi, [esp + 0x4c]
mov dword [esp + 0x48], eax
call fcn.004035a0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
push edx
push ecx
push eax
call fcn.0042b530
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
add dword [esp + 0x60], edx
push 0xfffffffffffffffe
push eax
call fcn.00405400
add esp, 0x30
add ebp, esi
jmp 0x403d37
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x240]
push ecx
push str.Slnt
push edx
call fcn.00404fa0
mov eax, dword [esp + 0x264]
add esp, 0xc
test eax, eax
jg 0x403c3f
lea eax, [esp + 0x26c]
push eax
push str._n_t_s:_in
push ebx
call fcn.00406230
add esp, 0xc
jmp 0x403c56
push eax
lea ecx, [esp + 0x270]
push ecx
push str._n_t_s:_d:_in
push ebx
call fcn.00406230
add esp, 0x10
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
push eax
mov esi, eax
call fcn.00405da0
mov edx, dword [esp + 0x20]
push 0xfffffffffffffffe
lea edi, [esp + 0x40]
mov ebp, eax
call fcn.004035a0
mov ecx, dword [esp + 0x24]
push ecx
push ebp
push eax
call fcn.0042b530
mov edx, dword [esp + 0x30]
add dword [esp + 0x54], edx
push 0xfffffffffffffffe
push esi
call fcn.00405400
lea eax, [esp + 0x264]
mov ecx, ebx
call fcn.00402070
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x34]
push ecx
push 0xffffffffffffffff
push eax
mov esi, eax
call fcn.00405da0
mov edx, dword [esp + 0x40]
push 0xfffffffffffffffe
mov ebp, eax
call fcn.004035a0
mov edx, dword [esp + 0x44]
push edx
push ebp
push eax
call fcn.0042b530
mov eax, dword [esp + 0x50]
add dword [esp + 0x78], eax
add esp, 0x40
push 0xfffffffffffffffe
push esi
call fcn.00405400
add esp, 8
cmp byte [esp + 0x267], 0
je 0x403d30
push 0xffffffffffffffff
mov edx, 0x14
call fcn.004035a0
mov ecx, dword [str._n_t_...tail_calls..._]
mov dword [eax], ecx
mov edx, dword [0x4468c4]
mov dword [eax + 4], edx
mov ecx, dword [0x4468c8]
mov dword [eax + 8], ecx
mov edx, dword [0x4468cc]
mov dword [eax + 0xc], edx
mov ecx, dword [0x4468d0]
add esp, 4
mov dword [eax + 0x10], ecx
add dword [esp + 0x38], 0x14
mov ebp, dword [esp + 0x2c0]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x240]
push edx
push ebp
push eax
call fcn.00404010
add esp, 0xc
test eax, eax
jne 0x403b80
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
push ecx
push edx
push esi
call fcn.00406140
lea eax, [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x30], eax
je 0x403d81
push 0xfffffffffffffffe
push esi
call fcn.00405470
add esp, 8
push 0xffffffffffffffff
push 0xfffffffffffffffe
push esi
call fcn.004054f0
push 0xfffffffffffffffe
push esi
call fcn.00405400
mov ecx, dword [esp + 0x2c0]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042a974
add esp, 0x2a0
ret