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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4116db
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp byte [edi + 0xa0], 0
je 0x409510
cmp dword [edi + 0x164], 0
je 0x409161
cmp byte [edi + 0x13c], 0
je 0x40913c
mov esi, dword [edi + 0x140]
mov eax, dword [edi + 0x14c]
add esi, dword [edi + 0x148]
add eax, dword [edi + 0x144]
test esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
jle 0x4085b7
mov eax, dword [edi]
mov edx, dword [eax + 0x8c]
call edx
cmp esi, eax
jge 0x4085b3
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
cmp esi, edx
jge 0x4085b3
mov eax, dword [esp + 0x18]
mov byte [esp + 0x27], 1
jmp 0x4085bc
mov eax, dword [esp + 0x18]
mov byte [esp + 0x27], 0
or eax, eax
jle 0x4085e2
mov edx, dword [edi]
mov eax, dword [edx + 0x90]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x4085e2
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 8]
cmp ecx, esi
jge 0x4085e2
mov al, 1
jmp 0x4085e4
xor al, al
mov cl, byte [esp + 0x27]
or cl, cl
jne 0x4086d3
test al, al
jne 0x4086d3
cmp byte [edi + 0x13d], 0
mov edx, dword [edi + 4]
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x3c], edx
jne 0x40863f
mov ecx, dword [edi + 0x16c]
add ecx, edx
sub eax, esi
mov edx, dword [edi + 0x170]
cmp eax, edx
jle 0x408633
mov eax, dword [edi + 0x10]
sub eax, esi
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov eax, dword [edi + 0x170]
mov edx, dword [esp + 0x3c]
add eax, esi
sub ecx, edx
sub eax, esi
mov edx, dword [edi]
cmp byte [edi + 0x13f], 0
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x90]
mov dword [esp + 0x18], ecx
mov ecx, edi
je 0x408698
push 0xfe
call eax
mov ecx, edi
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x8c]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x48]
push 0
push 0
push ecx
push edx
push esi
push eax
push ebx
lea esi, [edi + 0x160]
call fcn.00407d60
jmp 0x409161
push 0xff80ff
call eax
mov edx, dword [edi]
push eax
mov ecx, edi
mov eax, dword [edx + 0x8c]
call eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x48]
push 0
push 0
push ecx
push edx
push esi
lea esi, [edi + 0x160]
push eax
mov eax, ebx
call fcn.00407e90
jmp 0x409161
cmp byte [edi + 0x13f], 0
je 0x408c08
or cl, cl
push 0xff
je 0x408b11
test al, al
je 0x408a14
mov eax, dword [edi + 0x144]
mov ecx, dword [edi + 0x140]
lea esi, [edi + 0x160]
mov edx, dword [edi + 4]
push eax
push ecx
push 0
push 0
push eax
push ecx
mov ecx, dword [edi + 8]
push ecx
push edx
push ebx
call fcn.00407d60
mov edx, dword [edi]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 0x144]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x140]
push 0xff
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, edi
call eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
sub eax, edx
push eax
mov eax, dword [edi + 0x144]
push 0
push ecx
push eax
mov eax, dword [esp + 0x38]
sub eax, edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
add eax, ecx
push edx
push eax
push ebx
call fcn.00407d60
mov eax, dword [edi + 0x144]
mov ecx, dword [edi + 0x148]
push 0xff
push eax
mov eax, ecx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x8c]
mov dword [esp + 0x2c], ecx
mov ecx, edi
push 0
call eax
mov ecx, eax
mov edx, dword [edi + 0x144]
mov eax, dword [esp + 0x30]
sub ecx, eax
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi + 0xc]
push eax
sub edx, eax
push ecx
push edx
push ebx
call fcn.00407d60
mov ecx, dword [edi + 0x144]
mov eax, dword [edi + 0x10]
mov edx, dword [edi]
sub eax, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x140]
mov dword [esp + 0x28], ecx
mov ecx, edi
mov dword [esp + 0x20], eax
push 0xff
mov eax, dword [edx + 0x90]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
sub eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
push ecx
push edx
push 0
push eax
push ecx
mov ecx, dword [edi + 8]
add ecx, edx
mov edx, dword [edi + 4]
push ecx
push edx
push ebx
call fcn.00407d60
mov eax, dword [edi + 0x140]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi]
sub ecx, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x144]
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 0x90]
mov ecx, edi
push 0xff
call eax
mov ecx, edi
sub eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x8c]
call eax
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x34]
push eax
mov eax, dword [edi + 8]
add eax, ecx
mov ecx, dword [edi + 4]
add ecx, edx
push eax
push ecx
push ebx
call fcn.00407d60
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x148]
sub eax, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edx, dword [eax + 0x90]
push 0xff
call edx
sub eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x144]
mov edx, dword [edi]
push eax
mov eax, dword [edi + 0x148]
push eax
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x144]
add edx, dword [edi + 8]
sub eax, ecx
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x2c]
push eax
mov eax, dword [edi + 0xc]
sub eax, ecx
push ecx
push edx
push eax
push ebx
call fcn.00407d60
mov eax, dword [edi + 0x14c]
mov edx, eax
mov ecx, dword [edi + 0x140]
push 0xff
push edx
mov edx, dword [edi]
mov dword [esp + 0x18], eax
push ecx
mov ecx, edi
mov eax, dword [edx + 0x90]
call eax
mov edx, dword [edi + 0x140]
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x10]
sub ecx, eax
push 0
push eax
push edx
mov edx, dword [edi + 4]
push ecx
push edx
push ebx
call fcn.00407d60
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x140]
sub eax, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x14c]
mov edx, eax
mov dword [esp + 0x10], eax
mov eax, dword [edi]
push 0xff
mov dword [esp + 0x18], ecx
mov ecx, edi
push edx
mov edx, dword [eax + 0x8c]
call edx
mov ecx, edi
sub eax, dword [esp + 0x24]
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
call edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push edx
push ecx
push eax
mov eax, dword [edi + 0x10]
sub eax, ecx
mov ecx, dword [edi + 4]
push eax
add ecx, edx
push ecx
push ebx
call fcn.00407d60
mov edx, dword [edi + 0x148]
mov ecx, dword [edi + 0x14c]
mov dword [esp + 0x10], edx
push 0xff
mov eax, ecx
push eax
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov eax, dword [edi]
push edx
mov edx, dword [eax + 0x90]
call edx
sub eax, dword [edi + 0x14c]
push eax
mov ecx, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x8c]
call edx
mov ecx, eax
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x20]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push ecx
mov ecx, dword [edi + 0xc]
sub ecx, eax
push eax
push edx
push ecx
push ebx
call fcn.00407d60
jmp 0x409161
mov esi, dword [edi + 0x10]
mov eax, dword [edi]
mov ecx, dword [edi + 0x140]
sub esi, dword [edi + 8]
mov dword [esp + 0x14], ecx
mov ecx, edi
mov edx, dword [eax + 0x90]
call edx
mov ecx, dword [edi + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
push 0
push 0
push esi
lea esi, [edi + 0x160]
push eax
mov eax, dword [edi + 8]
push eax
push ecx
push ebx
call fcn.00407d60
mov ecx, edi
mov esi, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
sub esi, dword [edi + 4]
mov edx, dword [edi + 0x140]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x90]
push 0xff
call edx
mov ecx, edi
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x8c]
call edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub eax, ecx
sub esi, ecx
push eax
mov eax, dword [esp + 0x1c]
push 0
push eax
push edx
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push esi
push ecx
add edx, eax
lea esi, [edi + 0x160]
push edx
push ebx
call fcn.00407d60
mov esi, dword [edi + 0x10]
mov eax, dword [edi + 0x148]
mov ecx, edi
mov edx, dword [edi]
sub esi, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x90]
push 0xff
call eax
mov edx, dword [edi]
mov ecx, dword [edi + 0x148]
push eax
mov eax, dword [edx + 0x8c]
push ecx
push 0
mov ecx, edi
call eax
mov edx, dword [edi + 8]
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
push ecx
push esi
push eax
mov ecx, dword [edi + 0xc]
lea esi, [edi + 0x160]
sub ecx, eax
push edx
push ecx
push ebx
call fcn.00407d60
jmp 0x409161
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
mov ecx, dword [edi + 0x144]
mov eax, dword [edi]
push ecx
mov edx, dword [eax + 0x8c]
mov ecx, edi
call edx
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
mov eax, dword [edi + 0x144]
push 0
push 0
push eax
push esi
lea esi, [edi + 0x160]
push ecx
push edx
push ebx
call fcn.00407d60
mov esi, dword [edi + 0x10]
mov ecx, edi
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov edx, dword [edi]
sub esi, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x144]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x90]
push 0xff
call eax
sub eax, dword [esp + 0x1c]
mov edx, dword [edi]
mov ecx, edi
push eax
mov eax, dword [edx + 0x8c]
call eax
sub esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 8]
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push esi
add edx, eax
push ecx
lea esi, [edi + 0x160]
mov eax, dword [edi + 4]
push edx
push eax
push ebx
call fcn.00407d60
mov edx, dword [edi + 0x14c]
mov esi, dword [edi + 0xc]
mov ecx, edx
sub esi, dword [edi + 4]
mov eax, dword [edi]
push 0xff
mov dword [esp + 0x14], edx
push ecx
mov ecx, edi
mov edx, dword [eax + 0x8c]
call edx
mov ecx, edi
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
call edx
mov edx, dword [edi + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
push 0
sub edx, eax
push eax
push esi
push edx
lea esi, [edi + 0x160]
mov eax, dword [edi + 4]
push eax
push ebx
call fcn.00407d60
jmp 0x409161
test cl, cl
push 0xff80ff
je 0x409045
or al, al
je 0x408f45
mov eax, ebx
mov ecx, dword [edi + 0x140]
mov edx, dword [edi + 4]
mov esi, dword [edi + 0x144]
push esi
push ecx
push 0
push 0
push esi
push ecx
lea esi, [edi + 0x160]
mov ecx, dword [edi + 8]
push ecx
push edx
call fcn.00407e90
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 0x144]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x140]
push 0xff80ff
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, edi
call eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
sub eax, edx
push eax
mov eax, dword [edi + 0x144]
push 0
push ecx
push eax
mov eax, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
add eax, ecx
push edx
push eax
mov eax, ebx
call fcn.00407e90
mov edx, dword [edi + 0x144]
mov ecx, dword [edi + 0x148]
mov eax, ecx
push 0xff80ff
push edx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x8c]
mov dword [esp + 0x1c], ecx
push 0
mov ecx, edi
call eax
mov edx, dword [edi + 0x144]
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi + 0xc]
push eax
push ecx
sub edx, eax
push edx
mov eax, ebx
call fcn.00407e90
mov edx, dword [edi]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x144]
sub ecx, dword [edi + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0x140]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
push 0xff80ff
mov eax, dword [edx + 0x90]
mov ecx, edi
call eax
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push ecx
push edx
push 0
push eax
push ecx
mov eax, ebx
mov ecx, dword [edi + 8]
add ecx, edx
mov edx, dword [edi + 4]
push ecx
push edx
call fcn.00407e90
mov ecx, dword [edi + 0x140]
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x144]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x90]
mov ecx, edi
push 0xff80ff
call eax
sub eax, dword [esp + 0x1c]
mov edx, dword [edi]
mov ecx, edi
push eax
mov eax, dword [edx + 0x8c]
call eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x34]
push eax
mov eax, dword [edi + 8]
add eax, ecx
mov ecx, dword [edi + 4]
push eax
mov eax, ebx
add ecx, edx
push ecx
call fcn.00407e90
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
mov edx, dword [edi + 0x148]
mov ecx, edi
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x90]
push 0xff80ff
call edx
mov edx, dword [edi]
mov ecx, dword [edi + 0x144]
sub eax, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x148]
push eax
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x144]
add edx, dword [edi + 8]
sub eax, ecx
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x2c]
push eax
mov eax, dword [edi + 0xc]
sub eax, ecx
push ecx
push edx
push eax
mov eax, ebx
call fcn.00407e90
mov ecx, dword [edi + 0x14c]
mov eax, dword [edi + 0x140]
push 0xff80ff
mov edx, ecx
push edx
mov edx, dword [edi]
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [edx + 0x90]
mov ecx, edi
call eax
mov ecx, eax
mov edx, dword [edi + 0x140]
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x10]
sub ecx, eax
push 0
push eax
push edx
mov edx, dword [edi + 4]
mov eax, ebx
push ecx
push edx
call fcn.00407e90
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x140]
sub eax, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x14c]
mov ecx, eax
mov dword [esp + 0x10], eax
mov eax, dword [edi]
push 0xff80ff
mov dword [esp + 0x18], edx
push ecx
mov edx, dword [eax + 0x8c]
mov ecx, edi
call edx
sub eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
call edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push edx
push ecx
push eax
mov eax, dword [edi + 0x10]
sub eax, ecx
mov ecx, dword [edi + 4]
push eax
mov eax, ebx
add ecx, edx
push ecx
call fcn.00407e90
mov ecx, dword [edi + 0x14c]
mov edx, dword [edi + 0x148]
mov dword [esp + 0x10], edx
push 0xff80ff
mov eax, ecx
push eax
mov dword [esp + 0x1c], ecx
mov eax, dword [edi]
mov ecx, edi
push edx
mov edx, dword [eax + 0x90]
call edx
mov ecx, edi
sub eax, dword [edi + 0x14c]
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x8c]
call edx
mov edx, dword [edi + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push ecx
mov ecx, dword [edi + 0xc]
sub ecx, eax
push eax
mov eax, ebx
push edx
push ecx
call fcn.00407e90
jmp 0x409161
mov ecx, edi
mov eax, dword [edi]
mov edx, dword [edi + 0x140]
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x90]
call edx
mov ecx, dword [edi + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
push 0
push 0
push esi
push eax
mov esi, dword [edi + 8]
push esi
mov eax, ebx
lea esi, [edi + 0x160]
push ecx
call fcn.00407e90
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
mov ecx, dword [edi + 0x140]
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edx, dword [eax + 0x90]
push 0xff80ff
call edx
push eax
mov ecx, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x8c]
call edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
push eax
mov eax, dword [esp + 0x1c]
push 0
push eax
push edx
mov edx, dword [edi + 4]
sub esi, ecx
mov ecx, dword [edi + 8]
add edx, eax
push esi
lea esi, [edi + 0x160]
mov eax, ebx
push ecx
push edx
call fcn.00407e90
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 8]
mov ecx, dword [edi + 0x148]
mov edx, dword [edi]
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 0x90]
push 0xff80ff
mov ecx, edi
call eax
mov edx, dword [edi]
mov ecx, dword [edi + 0x148]
push eax
mov eax, dword [edx + 0x8c]
push ecx
push 0
mov ecx, edi
call eax
mov ecx, eax
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 8]
sub ecx, eax
push ecx
push esi
push eax
mov ecx, dword [edi + 0xc]
sub ecx, eax
push edx
mov eax, ebx
lea esi, [edi + 0x160]
push ecx
call fcn.00407e90
jmp 0x409161
mov ecx, dword [edi + 0x144]
mov eax, dword [edi]
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
push ecx
mov edx, dword [eax + 0x8c]
mov ecx, edi
call edx
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
mov eax, dword [edi + 0x144]
push 0
push 0
push eax
mov eax, ebx
push esi
push ecx
push edx
lea esi, [edi + 0x160]
call fcn.00407e90
mov esi, dword [edi + 0x10]
mov edx, dword [edi]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
sub esi, dword [edi + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0x144]
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 0x90]
push 0xff80ff
mov ecx, edi
call eax
sub eax, dword [esp + 0x1c]
mov ecx, edi
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x8c]
call eax
mov edx, dword [edi + 8]
sub esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push esi
lea esi, [edi + 0x160]
add edx, eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
mov eax, ebx
call fcn.00407e90
mov eax, dword [edi]
mov ecx, dword [edi + 0x14c]
mov edx, ecx
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
push 0xff80ff
mov dword [esp + 0x14], ecx
mov ecx, edi
push edx
mov edx, dword [eax + 0x8c]
call edx
mov ecx, edi
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
call edx
mov edx, dword [edi + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
push 0
sub edx, eax
push eax
push esi
lea esi, [edi + 0x160]
push edx
mov eax, dword [edi + 4]
push eax
mov eax, ebx
call fcn.00407e90
jmp 0x409161
mov edx, dword [edi]
mov eax, dword [edx + 0x90]
call eax
mov edx, dword [edi]
mov ecx, edi
push eax
mov eax, dword [edx + 0x8c]
call eax
push eax
lea esi, [edi + 0x160]
mov eax, ebx
call fcn.00407e10
cmp dword [edi + 0xbc], 0
jbe 0x409510
mov esi, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
add eax, dword [edi + 0x150]
add ecx, dword [edi + 0x154]
sub edx, dword [edi + 0x158]
sub esi, dword [edi + 0x15c]
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 1
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [edi + 0xa1], 0
mov dword [esp + 0x14], eax
je 0x4091cc
mov ecx, dword [edi + 0xe8]
push ecx
jmp 0x4091d3
mov edx, dword [edi + 0x134]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, edi
mov dword [esp + 0x18], eax
call fcn.0040b880
mov eax, dword [edi + 0xf4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea esi, [edi + 0xa8]
push esi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esp + 0xf8], 0
cmp dword [esp + 0xc8], 8
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
jae 0x40924e
lea eax, [esp + 0xb4]
mov edx, dword [esp + 0xc4]
push 0x400
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x34]
jle 0x409459
push 0x413660
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0xf8], 1
cmp dword [edi + 0x110], 0
je 0x4092e2
mov eax, dword [edi + 0xbc]
mov ecx, dword [edi + 0x110]
sub eax, ecx
push ecx
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
mov byte [esp + 0xfc], 2
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0xf8], 1
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor esi, esi
mov eax, dword [edi + 0xbc]
cmp dword [edi + 0x110], eax
jge 0x409444
test esi, esi
jne 0x409334
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x60]
push 0x4142f8
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
sub esp, 0xfffffff4
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xfc], 3
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x5c]
jmp 0x4093dc
push esi
push 0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [edi + 0xa8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xfc], 4
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf8], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x4142f8
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
lea ecx, [esp + 0xd8]
push ecx
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x110], 5
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0x18
push eax
mov byte [esp + 0xfc], 6
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0xf8], 5
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xf8], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0xc8], 8
mov eax, dword [esp + 0xb4]
jae 0x409402
lea eax, [esp + 0xb4]
mov edx, dword [esp + 0xc4]
push 0x400
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
sub eax, 0xfffffff0
cmp eax, dword [esp + 0x34]
jg 0x409444
mov eax, dword [edi + 0xbc]
inc esi
mov ecx, dword [edi + 0x110]
add ecx, esi
cmp ecx, eax
jl 0x4092f6
mov byte [esp + 0xf8], 0
lea ecx, [esp + 0xcc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
sub eax, esi
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
mov dword [esp + 0x44], esi
push 0
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esp + 0xc8], 8
mov eax, dword [esp + 0xb4]
jae 0x4094ac
lea eax, [esp + 0xb4]
mov esi, dword [edi + 0xfc]
push esi
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0xc8]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x10]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x14]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0041045c
mov esp, ebp
pop ebp
ret 4