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

Disassembly:
sub esp, 0xbc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x4387c2
cmp dword [0x871218], ebx
je 0x4387c2
mov ecx, dword [esp + 0xcc]
mov ecx, dword [ecx + 8]
cmp ecx, ebx
mov dword [esp + 0x54], ecx
je 0x4387c2
push ebp
push edi
lea ecx, [esp + 0x10]
push ebx
push ecx
mov dword [esp + 0x18], ebx
mov edx, dword [eax]
push ebx
push ebx
push eax
mov dword [esp + 0x50], ebx
call dword [edx + 0x2c]
mov dl, byte [0x870c08]
xor ebp, ebp
or edi, 0xffffffff
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x28], dl
mov word [esp + 0x29], bx
mov dword [esi + 0x68], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
call fcn.00437300
push 0x8b15c0
mov dword [esp + 0x58], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x54]
mov ecx, dword [0x871218]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SelectObject]
cmp dword [esp + 0x5c], ebx
jle 0x438533
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x437e96
mov ecx, 0x7e5658
jmp 0x437e9c
mov ecx, dword [esp + 0x44]
add ecx, eax
cmp byte [ecx], 0xa
jne 0x43816e
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
inc edx
cmp eax, ebp
mov dword [esp + 0x44], edx
je 0x438148
mov edx, dword [esi + 0x4c]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb4], eax
fild qword [esp + 0xac]
mov eax, dword [esi + 0x50]
mov dword [esp + 0xb8], ebx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x7c], eax
fstp dword [esp + 0x1c]
fild qword [esp + 0xb4]
mov dword [esp + 0x80], ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ebx
mov edx, dword [esp + 0x30]
fdiv dword [esp + 0x1c]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ebx
cmp dword [esp + 0x3c], 0x12a
fild qword [esp + 0x7c]
fstp dword [esp + 0x18]
fild qword [esp + 0xbc]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x20]
fild qword [esp + 0x8c]
fdiv dword [esp + 0x1c]
fild qword [esp + 0x6c]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x24]
jae 0x43852f
fld dword [esp + 0x2c]
fsub dword [0x7e5860]
fld st(1)
fsub st(3)
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
fmul dword [esp + 0x1c]
fdiv dword [esi + 0x54]
fadd dword [esp + 0x2c]
fsub dword [0x7e5860]
fstp dword [esp + 0x14]
fld dword [esp + 0x40]
fsub dword [0x7e5860]
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fsub dword [esp + 0x20]
fmul dword [esp + 0x18]
fdiv dword [esi + 0x54]
fadd dword [esp + 0x40]
fsub dword [0x7e5860]
fstp dword [esp + 0x18]
fld dword [0x7e6004]
fld dword [0x7e6000]
fld st(2)
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], edi
fstp dword [eax]
mov dword [eax + 4], ecx
mov dword [eax + 0x18], edx
fstp dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fstp dword [eax + 0xc]
fld st(2)
fstp dword [eax + 0x14]
fld dword [0x7e6004]
mov eax, dword [esp + 0x10]
fld dword [0x7e6000]
add eax, 0x1c
fld st(2)
mov dword [esp + 0x10], eax
mov dword [eax + 4], ecx
fstp dword [eax]
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], edx
fstp dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
fstp dword [eax + 0xc]
fld st(2)
fstp dword [eax + 0x14]
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
fstp dword [eax + 0xc]
fld st(1)
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
fstp dword [eax + 0x14]
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
fld dword [0x7e6004]
fld dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
fstp dword [eax + 0xc]
mov dword [eax + 0x10], edi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
fld st(1)
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x18]
fstp dword [eax + 0x14]
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
fstp dword [eax + 0xc]
fxch st(1)
fstp dword [eax + 0x14]
mov dword [eax + 4], edx
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [0x7e6004]
mov ecx, dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
fstp dword [eax]
mov dword [esp + 0x60], ecx
mov dword [eax + 4], edx
fstp dword [eax + 0x14]
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
fld dword [esp + 0x50]
fcomp dword [esp + 0x14]
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
add eax, 2
add ecx, 0x1c
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], ecx
fnstsw ax
test ah, 1
je 0x438131
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], edx
fld dword [esp + 0x4c]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x438148
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
fild dword [esp + 0xd0]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], 0
fdiv dword [esi + 0x54]
fadd dword [esp + 0x40]
fiadd dword [esi + 0x7c]
fstp dword [esp + 0x40]
jmp 0x43851d
cmp eax, ebx
jne 0x43817d
mov edx, dword [esp + 0x44]
mov ecx, 0x7e5658
jmp 0x438184
mov edx, dword [esp + 0x44]
lea ecx, [eax + edx]
test byte [ecx], 0x80
je 0x4381ab
cmp eax, ebx
jne 0x438194
mov eax, 0x7e5658
jmp 0x438196
add eax, edx
mov cx, word [eax]
add edx, 2
mov word [esp + 0x28], cx
mov dword [esp + 0x44], edx
mov byte [esp + 0x2a], bl
jmp 0x4381c7
cmp eax, ebx
jne 0x4381b6
mov eax, 0x7e5658
jmp 0x4381b8
add eax, edx
mov al, byte [eax]
inc edx
mov byte [esp + 0x28], al
mov dword [esp + 0x44], edx
mov byte [esp + 0x29], bl
lea ecx, [esp + 0xc4]
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, dword [0x871218]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.gdi32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0xc4]
mov eax, dword [esi + 0x4c]
add edx, ebp
cmp edx, eax
jbe 0x4384ee
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x4384cd
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ebx
fild qword [esp + 0x9c]
mov eax, dword [esi + 0x50]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebx
mov ecx, dword [esp + 0x48]
fstp dword [esp + 0x1c]
fild qword [esp + 0x74]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ebx
fdiv dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x3c]
cmp eax, 0x12a
fild qword [esp + 0x84]
fstp dword [esp + 0x18]
fild qword [esp + 0x94]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x24]
fild qword [esp + 0xa4]
fdiv dword [esp + 0x1c]
fild qword [esp + 0x34]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x20]
fld st(0)
fsub st(2)
fmul dword [esp + 0x1c]
fdiv dword [esi + 0x54]
fstp dword [esp + 0x54]
jae 0x43852f
fld dword [esp + 0x2c]
fsub dword [0x7e5860]
fld dword [esp + 0x54]
fadd dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
fst dword [esp + 0x54]
fsub dword [0x7e5860]
fstp dword [esp + 0x14]
fld dword [esp + 0x40]
fsub dword [0x7e5860]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fsub dword [esp + 0x24]
fmul dword [esp + 0x18]
fdiv dword [esi + 0x54]
fadd dword [esp + 0x40]
fsub dword [0x7e5860]
fstp dword [esp + 0x18]
fld dword [0x7e6004]
fld dword [0x7e6000]
fld st(2)
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], edi
fstp dword [eax]
mov dword [eax + 4], ecx
mov dword [eax + 0x18], edx
fstp dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
fstp dword [eax + 0xc]
fld st(2)
fstp dword [eax + 0x14]
fld dword [0x7e6004]
mov eax, dword [esp + 0x10]
fld dword [0x7e6000]
add eax, 0x1c
fld st(2)
mov dword [esp + 0x10], eax
mov dword [eax + 4], ecx
fstp dword [eax]
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], edx
fstp dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
fstp dword [eax + 0xc]
fld st(2)
fstp dword [eax + 0x14]
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
fstp dword [eax + 0xc]
fld st(1)
mov dword [eax + 4], edx
mov dword [eax + 0x10], edi
fstp dword [eax + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
mov edx, dword [esp + 0x14]
add eax, 0x1c
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov edx, dword [esp + 0x24]
fstp dword [eax + 0xc]
fld st(1)
mov dword [eax + 4], ecx
mov dword [eax + 0x10], edi
fstp dword [eax + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
fld dword [0x7e6004]
fld dword [0x7e6000]
mov edx, dword [esp + 0x18]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
fstp dword [eax + 0xc]
fxch st(1)
fstp dword [eax + 0x14]
mov dword [eax + 4], edx
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [0x7e6004]
mov ecx, dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
fstp dword [eax]
mov dword [esp + 0x68], ecx
mov dword [eax + 4], edx
fstp dword [eax + 0x14]
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
fld dword [esp + 0x50]
fcomp dword [esp + 0x14]
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
add eax, 2
add ecx, 0x1c
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], ecx
fnstsw ax
test ah, 1
je 0x43848b
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], edx
fld dword [esp + 0x4c]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x4384a2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
xor ebp, ebp
add edx, eax
add ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], ecx
jmp 0x4384ee
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
xor ebp, ebp
add edx, eax
add ecx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x28]
push ebx
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, dword [esp + 0x4c]
mov edx, dword [0x871218]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
push 2
push ecx
push ebp
push edx
call dword [sym.imp.gdi32.dll_ExtTextOutA]
add ebp, dword [esp + 0xc4]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jl 0x437e81
jmp 0x438533
fstp st(0)
fstp st(0)
push 0x8b15c0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x438792
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
mov edx, dword [esi + 0x50]
fild qword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xd0]
fstp dword [esp + 0x1c]
fild qword [esp + 0x34]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
fdiv dword [esp + 0x1c]
fild qword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
add eax, ecx
fstp dword [esp + 0x18]
fild qword [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
fdiv dword [esp + 0x18]
fstp dword [esp + 0x20]
fild qword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x10]
fdiv dword [esp + 0x1c]
fild qword [esp + 0x34]
fdiv dword [esp + 0x18]
fst dword [esp + 0x58]
fld dword [esp + 0x2c]
fsub dword [0x7e5860]
fstp dword [esp + 0x24]
fld st(1)
fsub st(3)
mov edx, dword [esp + 0x24]
fmul dword [esp + 0x1c]
fdiv dword [esi + 0x54]
fadd dword [esp + 0x2c]
fsub dword [0x7e5860]
fstp dword [esp + 0x14]
fld dword [esp + 0x40]
fsub dword [0x7e5860]
fstp dword [esp + 0x2c]
fld st(0)
fsub dword [esp + 0x20]
fmul dword [esp + 0x18]
fdiv dword [esi + 0x54]
fadd dword [esp + 0x40]
fsub dword [0x7e5860]
fstp dword [esp + 0x30]
fld dword [0x7e6004]
fld dword [0x7e6000]
mov ecx, dword [esp + 0x30]
mov dword [eax], edx
fstp dword [eax + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
fstp dword [eax + 0xc]
fld st(2)
mov dword [eax + 0x10], edi
fstp dword [eax + 0x14]
fst dword [eax + 0x18]
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
fstp dword [eax + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax + 0x10], edi
fld st(2)
mov dword [eax + 0x18], edx
mov ecx, dword [esp + 0x14]
fstp dword [eax + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
fld dword [0x7e6004]
fld dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [eax + 0xc]
fld st(1)
mov dword [eax + 0x10], edi
mov edx, dword [esp + 0x2c]
fstp dword [eax + 0x14]
fstp dword [eax + 0x18]
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
add eax, 0x1c
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
fstp dword [eax + 0xc]
mov dword [eax + 4], edx
mov dword [eax + 0x10], edi
fst dword [eax + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
mov edx, dword [esp + 0x14]
add eax, 0x1c
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov edx, dword [esp + 0x58]
fstp dword [eax + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 0x10], edi
fstp dword [eax + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x10]
fld dword [0x7e6004]
fld dword [0x7e6000]
mov ecx, dword [esp + 0x24]
add eax, 0x1c
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x2c]
fstp dword [eax + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
fstp dword [eax + 0xc]
mov dword [eax + 4], edx
mov dword [eax + 0x10], edi
fstp dword [eax + 0x14]
fld dword [esp + 0x50]
fcomp dword [esp + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x3c], eax
add ecx, 0x1c
fnstsw ax
mov dword [esp + 0x10], ecx
test ah, 1
je 0x43877b
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], edx
fld dword [esp + 0x4c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x438792
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x64], ebx
fld dword [esp + 0x50]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], ebx
call fcn.007a2dec
fld dword [esp + 0x4c]
mov dword [esi + 0x74], eax
call fcn.007a2dec
pop edi
mov dword [esi + 0x78], eax
pop ebp
pop esi
pop ebx
add esp, 0xbc
ret 8