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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x38], ebx
call edx
mov edi, dword [ebp + 8]
cmp byte [0x54db2b], bl
je 0x43783b
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov esi, dword [0x54db74]
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
mov dword [esp + 0x50], ecx
xor ecx, ecx
mov dword [esp + 0x40], ebx
cmp eax, ebx
jne 0x43721a
mov edx, dword [esi + 0xc]
mov dword [esp + 0x40], edx
jmp 0x437226
cmp eax, 1
jne 0x437229
mov eax, dword [esi + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 8]
mov eax, 0x55555556
imul ecx
mov eax, dword [0x547a10]
mov ecx, dword [0x547a08]
sub eax, ecx
mov ebx, edx
shr ebx, 0x1f
mov dword [esp + 0x44], eax
mov eax, dword [0x547a14]
add ebx, edx
mov edx, dword [0x547a0c]
sub eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x84]
cmp byte [eax + 0x270], 0
je 0x43726e
lea eax, [ebx + ebx]
jmp 0x43727b
movzx eax, byte [eax + 0x271]
neg eax
sbb eax, eax
and eax, ebx
push 2
push 2
push edx
push ecx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
push ecx
xor dl, dl
lea eax, [esp + 0x70]
mov dword [esp + 0x90], 2
mov dword [esp + 0x94], 2
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x8c], 0xffffffff
call fcn.00430960
mov eax, dword [0x547a08]
cmp byte [edi], 0
mov edx, dword [0x547a0c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
setne al
mov byte [esp + 0x82], al
mov eax, dword [edi + 4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [0x547a0c]
mov eax, dword [esp + 0x44]
mov ecx, dword [0x547a08]
push 2
push 1
push edx
mov edx, dword [esp + 0x30]
push eax
push 0xffffffffffffffff
add ecx, edx
push 0
push ecx
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [0x547a0c]
sub ecx, ebx
add ecx, edx
mov edx, dword [0x547a08]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
add edx, ecx
cmp byte [edi], 0
mov dword [esp + 0x10], edx
setne al
mov byte [esp + 0x82], al
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x28]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [0x547a0c]
mov eax, dword [0x547a10]
push 2
push 2
push edx
mov edx, dword [esp + 0x30]
mov ecx, ebx
sub ecx, eax
push ecx
push 0xffffffffffffffff
add eax, edx
push 0
push eax
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov eax, dword [0x547a0c]
mov dword [esp + 0x20], eax
mov eax, dword [0x547a10]
mov ecx, ebx
sub ecx, eax
sub eax, ebx
add eax, dword [esp + 0x4c]
mov dword [esp + 0x18], ecx
add eax, dword [esp + 0x2c]
cmp byte [edi], 0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
setne dl
push eax
mov dword [esp + 0x10], ecx
mov byte [esp + 0x86], dl
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x28]
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x30]
mov eax, dword [0x547a0c]
push 1
lea ecx, [eax + edx]
mov edx, dword [esp + 0x4c]
push 2
mov dword [esp + 0x20], ecx
push edx
mov ecx, dword [0x547a08]
mov edx, dword [esp + 0x30]
push ecx
push 0xffffffffffffffff
push eax
push edx
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [0x547a08]
add eax, ecx
cmp byte [edi], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
setne cl
push eax
mov dword [esp + 0x14], edx
mov byte [esp + 0x86], cl
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [0x547a0c]
push 1
push 1
push ecx
mov ecx, dword [0x547a08]
push edx
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
add ecx, edx
push ecx
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x547a08]
add ecx, eax
cmp byte [edi], 0
mov eax, dword [edi + 4]
setne dl
push eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x86], dl
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x28]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x547a10]
mov edx, dword [esp + 0x48]
push 1
push 2
push edx
mov edx, dword [0x547a0c]
mov ecx, ebx
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push edx
add eax, ecx
push eax
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov eax, dword [0x547a10]
mov ecx, ebx
sub ecx, eax
sub eax, ebx
add eax, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x2c]
cmp byte [edi], 0
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
setne dl
push eax
mov byte [esp + 0x86], dl
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x28]
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [0x547a14]
mov edx, dword [esp + 0x40]
push 2
push 2
mov eax, ecx
sub eax, edx
add eax, dword [esp + 0x58]
sub edx, ecx
add eax, dword [esp + 0x38]
push edx
mov edx, dword [0x547a08]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ecx
push eax
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov eax, dword [esp + 0x40]
sub eax, dword [0x547a14]
cmp byte [edi], 0
mov ecx, dword [0x547a08]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
setne al
mov byte [esp + 0x82], al
mov eax, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x547a14]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 2
sub edx, eax
push 1
push edx
mov edx, dword [0x547a08]
push ecx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x3c]
add edx, eax
push edx
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x547a08]
mov eax, dword [esp + 0x40]
sub eax, dword [0x547a14]
add edx, ecx
cmp byte [edi], 0
mov dword [esp + 0x10], eax
setne al
mov byte [esp + 0x82], al
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x547a14]
mov edx, dword [esp + 0x40]
mov ecx, dword [0x547a10]
push 2
sub edx, eax
push 2
push edx
mov edx, ebx
sub edx, ecx
push edx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x3c]
add ecx, eax
push ecx
xor dl, dl
lea eax, [esp + 0x70]
call fcn.00430960
mov eax, dword [esp + 0x40]
sub eax, dword [0x547a14]
mov esi, ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x547a10]
sub esi, eax
sub eax, ebx
add eax, dword [esp + 0x4c]
mov ebx, dword [edi + 4]
add eax, dword [esp + 0x2c]
cmp byte [edi], 0
push ebx
setne cl
mov dword [esp + 0x20], eax
mov byte [esp + 0x86], cl
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x1c], eax
push ebx
mov eax, esi
lea ecx, [esp + 0x64]
call fcn.0042ff80
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x84]
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x274]
mov ecx, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x2c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x278]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x30]
cmp byte [esi + 0x13c], 0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0x24]
je 0x437894
add esi, 0x2c
jmp 0x437897
mov esi, dword [esi + 0x28]
mov edx, dword [0x54db68]
mov ecx, dword [0x54db5c]
push 0xff
push 0x25
push 0
push edx
push ecx
lea edx, [esp + 0x9c]
push edx
push eax
add esi, 4
push esi
mov ecx, edi
call fcn.0042e660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc