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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x40d6b0
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x70]
mov ebx, dword [ebp + 0xc]
mov edx, dword fs:[0]
mov dword [esi + 0x70], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov dword [esi + 4], eax
push ebx
call fcn.00412ff0
add esp, 4
cmp eax, 1
je 0x405f14
push ebx
call fcn.00412fe0
add esp, 4
cmp eax, 1
jne 0x405ffe
lea eax, [esi + 4]
mov dword [esi + 0x14], 0x461940
mov dword [esi + 0x18], 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x63], 0
mov dword [esi + 0x5f], 0
mov dword [esi + 0x78], 1
lea ecx, [esi + 8]
mov dword [esi + 0x30], eax
lea eax, [esi + 5]
mov dword [esi + 0x34], fcn.00415bb0
mov dword [esi + 0x38], eax
lea eax, [esi + 6]
mov dword [esi + 0x3c], fcn.00415bb0
mov dword [esi + 0x40], eax
lea eax, [esi + 7]
mov dword [esi + 0x44], fcn.00415bb0
mov dword [esi + 0x48], eax
lea eax, [esi + 0x50]
mov dword [esi + 0x4c], fcn.00415bb0
mov dword [esi + 8], eax
lea eax, [esi + 0x30]
mov byte [esi + 0xc], 3
mov dword [esi + 0x24], eax
lea eax, [esi + 0x58]
mov dword [esi + 0x28], 4
mov dword [esi + 0x50], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x54], 0xf
push eax
push 0x461924
push ecx
call fcn.00412100
add esp, 0xc
mov cl, byte [esi + 0xc]
test al, al
jne 0x4060df
mov edx, dword [ebp + 0xc]
cmp cl, 3
ja 0x406073
cmp cl, 2
je 0x406073
mov eax, 0xf
mov dword [esi + 0x78], 0xffffffff
sub eax, dword [esi + 0x54]
jb 0x4060cd
push eax
lea eax, [esi + 0x58]
push eax
push edx
call fcn.00412710
add esp, 0xc
jmp 0x406061
lea edi, [esi + 4]
lea eax, [esi + 5]
mov dword [esi + 0x14], 0x461940
mov dword [esi + 0x18], 4
lea ecx, [esi + 6]
lea edx, [esi + 7]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], fcn.00415bb0
mov dword [esi + 0x38], eax
lea eax, [esi + 0x30]
mov dword [esi + 0x3c], fcn.00415bb0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], fcn.00415bb0
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], fcn.00415bb0
mov dword [esi + 0x24], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x28], 4
push eax
push ebx
call fcn.00412fa0
add esp, 8
mov ecx, dword [esi + 0x70]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [esi + 0x2c], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x78], 0
push eax
call dword [ecx]
add esp, 4
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4060a6
push dword [eax + 8]
push ecx
push dword [edx]
call fcn.00459be0
add esp, 0xc
push 4
push 0xc
push dword [esi + 0x10]
call fcn.00459be0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, 0xf
mov dword [esi + 0x78], 0xffffffff
sub eax, dword [esi + 0x54]
jae 0x405fee
push 0x46198c
push 0xf
push eax
call fcn.00413b50
add esp, 0xc
ud2
cmp cl, 3
jne 0x4060fd
push 1
push 0xf
call fcn.00459bd0
add esp, 8
test eax, eax
jne 0x406143
push 1
push 0xf
jmp 0x406194
movzx eax, byte [esi + 0x13]
movzx edx, word [esi + 0x11]
shl eax, 0x10
or edx, eax
mov eax, dword [esi + 0xd]
mov byte [esi + 0x14], cl
mov word [esi + 0x19], dx
shr edx, 0x10
mov dword [esi + 0x15], eax
mov dword [esi + 0x78], 2
mov byte [esi + 0x1b], dl
push 0x46197c
push 0x461398
lea eax, [esi + 0x14]
push eax
push 0x2b
push 0x46136c
call fcn.00410b80
add esp, 0x14
ud2
movsd xmm0, qword [0x461903]
movsd xmm1, qword [str.formatter_error]
mov edi, eax
movsd qword [eax + 7], xmm0
movsd qword [eax], xmm1
push 4
push 0xc
call fcn.00459bd0
add esp, 8
test eax, eax
je 0x406190
mov ebx, eax
mov dword [eax], edi
mov dword [eax + 4], 0xf
mov dword [eax + 8], 0xf
push 4
push 0xc
call fcn.00459bd0
add esp, 8
test eax, eax
jne 0x40619e
push 4
push 0xc
call fcn.00416b80
add esp, 8
ud2
movzx ecx, word [esi + 0x14]
mov dword [eax], ebx
mov dword [eax + 4], 0x461698
mov byte [eax + 8], 0x10
mov edx, eax
shr edx, 8
mov word [eax + 9], cx
mov cl, byte [esi + 0x16]
mov byte [eax + 0xb], cl
shl eax, 0x18
mov cl, 2
jmp 0x40610d