Function at 0x40d5f0
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], 0x413cd0
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.00418d00
add esp, 4
cmp eax, 1
je 0x40d654
push ebx
call fcn.00418cf0
add esp, 4
cmp eax, 1
jne 0x40d73e
lea eax, [esi + 4]
mov dword [esi + 0x18], 0x45d90c
mov dword [esi + 0x1c], 4
mov dword [esi + 0x20], 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.0041acb0
mov dword [esi + 0x38], eax
lea eax, [esi + 6]
mov dword [esi + 0x3c], fcn.0041acb0
mov dword [esi + 0x40], eax
lea eax, [esi + 7]
mov dword [esi + 0x44], fcn.0041acb0
mov dword [esi + 0x48], eax
lea eax, [esi + 0x50]
mov dword [esi + 0x4c], fcn.0041acb0
mov dword [esi + 8], eax
lea eax, [esi + 0x30]
mov byte [esi + 0xc], 3
mov dword [esi + 0x28], eax
lea eax, [esi + 0x58]
mov dword [esi + 0x2c], 4
mov dword [esi + 0x50], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x54], 0xf
push eax
push 0x45d8d8
push ecx
call fcn.004182f0
add esp, 0xc
mov cl, byte [esi + 0xc]
test al, al
jne 0x40d81f
mov edx, dword [ebp + 0xc]
cmp cl, 3
ja 0x40d7b3
cmp cl, 2
je 0x40d7b3
mov eax, 0xf
mov dword [esi + 0x78], 0xffffffff
sub eax, dword [esi + 0x54]
jb 0x40d80d
push eax
lea eax, [esi + 0x58]
push eax
push edx
call fcn.00407d30
add esp, 0xc
jmp 0x40d7a1
lea edi, [esi + 4]
lea eax, [esi + 5]
mov dword [esi + 0x18], 0x45d90c
mov dword [esi + 0x1c], 4
lea ecx, [esi + 6]
lea edx, [esi + 7]
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], fcn.0041acb0
mov dword [esi + 0x38], eax
lea eax, [esi + 0x30]
mov dword [esi + 0x3c], fcn.0041acb0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], fcn.0041acb0
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], fcn.0041acb0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x2c], 4
push eax
push ebx
call fcn.00407cf0
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 + 0x14], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x78], 0
push eax
call dword [ecx]
add esp, 4
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40d7e6
push dword [eax + 8]
push ecx
push dword [edx]
call fcn.004081b0
add esp, 0xc
push 4
push 0xc
push dword [esi + 0x10]
call fcn.004081b0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, 0xf
mov dword [esi + 0x78], 0xffffffff
sub eax, dword [esi + 0x54]
jae 0x40d72e
push 0x45d958
push 0xf
push eax
call fcn.00458a10
add esp, 0xc
ud2
cmp cl, 3
jne 0x40d83d
push 1
push 0xf
call fcn.004081e0
add esp, 8
test eax, eax
jne 0x40d883
push 1
push 0xf
jmp 0x40d8d4
movzx eax, byte [esi + 0x13]
movzx edx, word [esi + 0x11]
shl eax, 0x10
or edx, eax
mov eax, dword [esi + 0xd]
mov byte [esi + 0x18], cl
mov word [esi + 0x1d], dx
shr edx, 0x10
mov dword [esi + 0x19], eax
mov dword [esi + 0x78], 2
mov byte [esi + 0x1f], dl
push 0x45d948
push 0x45d354
lea eax, [esi + 0x18]
push eax
push 0x2b
push 0x45d328
call fcn.00458a70
add esp, 0x14
ud2
movsd xmm0, qword [0x45d8cf]
movsd xmm1, qword [str.formatter_error]
mov edi, eax
movsd qword [eax + 7], xmm0
movsd qword [eax], xmm1
push 4
push 0xc
call fcn.004081e0
add esp, 8
test eax, eax
je 0x40d8d0
mov ebx, eax
mov dword [eax], edi
mov dword [eax + 4], 0xf
mov dword [eax + 8], 0xf
push 4
push 0xc
call fcn.004081e0
add esp, 8
test eax, eax
jne 0x40d8de
push 4
push 0xc
call fcn.004584c0
add esp, 8
ud2
mov edx, eax
mov dword [eax], ebx
mov dword [eax + 4], 0x45d664
mov byte [eax + 8], 0x10
shl eax, 0x18
mov cl, 2
shr edx, 8
jmp 0x40d84d