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

Disassembly:
mov eax, 0x1cc8
call fcn.007a3530
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x48], ebx
je 0x4391f6
cmp dword [0x871218], ebx
je 0x4391f6
mov eax, dword [esp + 0x1cd8]
push ebp
lea edx, [esp + 0xb4]
xor ebp, ebp
mov ecx, dword [eax + 8]
mov al, byte [0x870c08]
mov dword [esp + 0x44], ecx
push edi
mov ecx, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x2c], al
mov word [esp + 0x2d], bx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
call fcn.00437300
push 0x8b15c0
mov dword [esp + 0x18], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x871218]
push ecx
push edx
call dword [sym.imp.gdi32.dll_SelectObject]
cmp dword [esp + 0x48], ebx
jle 0x438e5a
mov eax, dword [esp + 0x1cdc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x1ce0]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x438894
mov ecx, 0x7e5658
jmp 0x43889b
mov edx, dword [esp + 0x44]
lea ecx, [eax + edx]
cmp byte [ecx], 0xa
jne 0x438b10
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
inc edx
cmp eax, edi
mov dword [esp + 0x44], edx
je 0x438aed
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 0x50]
fild qword [esp + 0x60]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ebx
fstp dword [esp + 0x1c]
fild qword [esp + 0x98]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 0xb0], edi
fdiv dword [esp + 0x1c]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x40]
cmp eax, 0x12a
fild qword [esp + 0xa8]
fstp dword [esp + 0x38]
fild qword [esp + 0x70]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x14]
fild qword [esp + 0xb0]
fdiv dword [esp + 0x1c]
fild qword [esp + 0x80]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x28]
jae 0x438e56
fld st(0)
fsub st(2)
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
mov edx, dword [esp + 0x24]
fmul dword [esp + 0x1c]
fdiv dword [esi + 0x54]
fadd dword [esp + 0x24]
fst dword [esp + 0x3c]
fld dword [esp + 0x28]
fsub dword [esp + 0x14]
fmul dword [esp + 0x38]
fdiv dword [esi + 0x54]
fsubr dword [esp + 0x20]
fst dword [esp + 0x1c]
fld dword [0x7e6000]
fld st(1)
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
fstp dword [eax + 4]
mov dword [eax], edx
mov dword [eax + 0x14], ecx
fstp dword [eax + 8]
fld st(3)
fstp dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
add eax, 0x18
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
fld st(3)
mov dword [eax], edx
mov edx, dword [esp + 0x20]
fstp dword [eax + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
add eax, 0x18
mov edx, dword [esp + 0x28]
fld st(2)
mov dword [esp + 0x10], eax
mov dword [eax + 0xc], ecx
fstp dword [eax]
fxch st(1)
fstp dword [eax + 4]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x20]
fstp dword [eax + 8]
fld st(1)
fstp dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
add eax, 0x18
fld st(1)
mov dword [esp + 0x10], eax
mov dword [eax + 0xc], ecx
fstp dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
fstp dword [eax + 8]
fld st(1)
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x14], ecx
fstp dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
fxch st(1)
add eax, 0x18
mov dword [esp + 0x10], eax
fstp dword [eax]
fstp dword [eax + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
fstp dword [eax + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x10]
fld dword [0x7e6000]
mov ecx, dword [esi + 0x68]
add eax, 0x18
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
fstp dword [eax + 0x10]
fld dword [esp + 0x50]
fcomp dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
add eax, 2
add ecx, 0x18
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
fnstsw ax
test ah, 1
je 0x438ace
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], edx
fld dword [esp + 0x1c]
fchs
fld dword [esp + 0x4c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x438ae7
fstp dword [esp + 0x4c]
jmp 0x438ae9
fstp st(0)
mov ebp, dword [esp + 0x18]
fild dword [esp + 0x1cdc]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], 0
fdiv dword [esi + 0x54]
fsubr dword [esp + 0x20]
fstp dword [esp + 0x20]
jmp 0x438e44
cmp eax, ebx
jne 0x438b1f
mov edx, dword [esp + 0x44]
mov ecx, 0x7e5658
jmp 0x438b26
mov edx, dword [esp + 0x44]
lea ecx, [eax + edx]
test byte [ecx], 0x80
je 0x438b4d
cmp eax, ebx
jne 0x438b36
mov eax, 0x7e5658
jmp 0x438b38
add eax, edx
mov ax, word [eax]
add edx, 2
mov word [esp + 0x2c], ax
mov dword [esp + 0x44], edx
mov byte [esp + 0x2e], bl
jmp 0x438b69
cmp eax, ebx
jne 0x438b58
mov eax, 0x7e5658
jmp 0x438b5a
add eax, edx
mov cl, byte [eax]
inc edx
mov byte [esp + 0x2c], cl
mov dword [esp + 0x44], edx
mov byte [esp + 0x2d], bl
lea edx, [esp + 0x58]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov edx, dword [0x871218]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x58]
mov eax, dword [esi + 0x4c]
add ecx, edi
cmp ecx, eax
jbe 0x438e1c
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
je 0x438dff
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ebx
fild qword [esp + 0xa0]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebx
fild qword [esp + 0x90]
mov edx, dword [esi + 0x50]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x78], ebp
fdiv st(1)
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x40], 0x12a
fstp dword [esp + 0x1c]
fild qword [esp + 0x68]
fstp dword [esp + 0x38]
fild qword [esp + 0x78]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x18]
fild qword [esp + 0x88]
fdiv st(1)
fstp dword [esp + 0x14]
fild qword [esp + 0x30]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fsub dword [esp + 0x1c]
fmulp st(1)
fdiv dword [esi + 0x54]
jae 0x438e58
fadd dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
mov edx, dword [esp + 0x24]
fld st(0)
fld dword [esp + 0x28]
fsub dword [esp + 0x18]
fmul dword [esp + 0x38]
fdiv dword [esi + 0x54]
fsubr dword [esp + 0x20]
fst dword [esp + 0x3c]
fld dword [0x7e6000]
fld st(1)
mov dword [eax], edx
mov edx, dword [esp + 0x28]
fstp dword [eax + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
fstp dword [eax + 8]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x68]
add eax, 0x18
fld dword [0x7e6000]
mov dword [esp + 0x10], eax
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
fstp dword [eax + 8]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x10]
fld dword [0x7e6000]
mov ecx, dword [esi + 0x68]
add eax, 0x18
fld st(2)
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x28]
fstp dword [eax]
fld st(1)
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
fstp dword [eax + 4]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
fstp dword [eax + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
mov edx, dword [esp + 0x20]
add eax, 0x18
fld st(2)
mov dword [esp + 0x10], eax
mov dword [eax + 4], edx
fstp dword [eax]
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x14], edx
fstp dword [eax + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x10]
fld dword [0x7e6000]
mov ecx, dword [esi + 0x68]
add eax, 0x18
fld st(2)
mov dword [esp + 0x10], eax
mov dword [eax + 0xc], ecx
fstp dword [eax]
mov ecx, dword [esp + 0x14]
fxch st(1)
fstp dword [eax + 4]
mov dword [eax + 0x10], ecx
fstp dword [eax + 8]
mov edx, dword [esp + 0x28]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
add eax, 0x18
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
fld dword [esp + 0x50]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
fcomp st(1)
add eax, 2
add ecx, 0x18
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
fnstsw ax
test ah, 1
je 0x438dbf
fstp dword [esp + 0x50]
jmp 0x438dc1
fstp st(0)
fld dword [esp + 0x3c]
fchs
fld dword [esp + 0x4c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x438dda
fstp dword [esp + 0x4c]
jmp 0x438ddc
fstp st(0)
mov eax, dword [esp + 0x1cdc]
mov ecx, dword [esp + 0x54]
fstp dword [esp + 0x24]
xor edi, edi
add ebp, eax
add ecx, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x54], ecx
jmp 0x438e1c
mov eax, dword [esp + 0x1cdc]
mov ecx, dword [esp + 0x54]
xor edi, edi
add ebp, eax
add ecx, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x2c]
push ebx
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov edx, dword [0x871218]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push 2
push ebp
push edi
push edx
call dword [sym.imp.gdi32.dll_ExtTextOutA]
add edi, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jl 0x43887f
jmp 0x438e5a
fstp st(0)
fstp st(0)
push 0x8b15c0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x439071
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0x50]
fild qword [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x1cdc]
mov ecx, dword [esi + 0x68]
fstp dword [esp + 0x1c]
fild qword [esp + 0x30]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov edx, dword [esp + 0x24]
fdiv dword [esp + 0x1c]
fild qword [esp + 0x30]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
add ebp, eax
mov eax, dword [esp + 0x10]
fstp dword [esp + 0x38]
fild qword [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
fdiv dword [esp + 0x38]
fstp dword [esp + 0x18]
fild qword [esp + 0x30]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
fdiv dword [esp + 0x1c]
fild qword [esp + 0x30]
fdiv dword [esp + 0x38]
fst dword [esp + 0x48]
fld st(1)
fsub st(3)
fmul dword [esp + 0x1c]
fdiv dword [esi + 0x54]
fadd dword [esp + 0x24]
fst dword [esp + 0x14]
fld st(1)
fsub dword [esp + 0x18]
fmul dword [esp + 0x38]
fdiv dword [esi + 0x54]
fsubr dword [esp + 0x20]
fst dword [esp + 0x28]
fld dword [0x7e6000]
fxch st(1)
fstp dword [eax + 4]
mov dword [eax], edx
mov dword [eax + 0xc], ecx
fstp dword [eax + 8]
fld st(3)
fstp dword [eax + 0x10]
fld st(1)
fstp dword [eax + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
add eax, 0x18
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
fld st(3)
mov dword [eax + 4], edx
mov dword [eax + 0x14], ecx
fstp dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
add eax, 0x18
mov dword [esp + 0x10], eax
fld dword [0x7e6000]
fxch st(1)
fstp dword [eax]
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
fstp dword [eax + 8]
fld st(1)
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
fstp dword [eax + 0x10]
mov ebp, dword [esp + 0x40]
fstp dword [eax + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
add eax, 0x18
add ebp, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ebp
fstp dword [eax + 8]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
fst dword [eax + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x10]
fld dword [0x7e6000]
mov ecx, dword [esi + 0x68]
add eax, 0x18
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
fstp dword [eax + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x68]
fld dword [0x7e6000]
add eax, 0x18
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
fstp dword [eax + 8]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
fstp dword [eax + 0x10]
fld dword [esp + 0x50]
fcomp dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x10]
fnstsw ax
add ecx, 0x18
test ah, 1
mov dword [esp + 0x10], ecx
je 0x439054
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], edx
fld dword [esp + 0x28]
fchs
fld dword [esp + 0x4c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x43906d
fstp dword [esp + 0x4c]
jmp 0x439075
fstp st(0)
jmp 0x439075
mov ebp, dword [esp + 0x40]
test byte [esp + 0x1ce4], 4
je 0x43913e
mov eax, ebp
xor edx, edx
shr eax, 1
cmp eax, ebx
mov dword [esp + 0x18], eax
jle 0x43913e
lea ecx, [edx + edx*8]
lea ebp, [edx + 1]
shl ecx, 4
cmp ebp, eax
mov dword [esp + 0x14], 1
fld dword [esp + ecx + 0x100]
fld dword [esp + ecx + 0xbc]
fstp dword [esp + 0x48]
jge 0x4390f5
lea edi, [esp + ecx + 0x190]
fld dword [edi - 0x44]
fcomp dword [esp + 0x48]
fnstsw ax
test ah, 0x40
je 0x4390f1
mov eax, dword [esp + 0x14]
add edi, 0x90
inc eax
inc ebp
fstp st(0)
fld dword [edi - 0x90]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
cmp ebp, eax
jl 0x4390c3
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
fmul dword [0x7e6014]
lea ebp, [edi + edx]
cmp edx, ebp
fstp dword [esp + 0x48]
jge 0x439130
mov edi, ebp
lea eax, [esp + ecx + 0xb8]
sub edi, edx
mov ecx, 6
fld dword [esp + 0x48]
fadd dword [eax]
add eax, 0x18
dec ecx
fstp dword [eax - 0x18]
jne 0x43911a
dec edi
jne 0x439115
mov eax, dword [esp + 0x18]
mov edx, ebp
cmp edx, eax
jl 0x439095
mov ebp, dword [esp + 0x40]
mov eax, dword [esi + 0x48]
lea edx, [esp + 0x10]
push ebx
push edx
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x2c]
lea edi, [ebp + ebp*2]
cmp edi, ebx
jle 0x4391b5
lea eax, [esp + 0xc0]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x10]
fild qword [esp + 0x30]
fld dword [eax - 8]
mov ecx, edx
add edx, 0x18
fdiv st(1)
mov dword [esp + 0x10], edx
add eax, 0x18
dec edi
fstp dword [eax - 0x20]
fld dword [eax - 0x1c]
fdiv st(1)
fstp dword [eax - 0x1c]
mov edx, dword [eax - 0x20]
mov dword [ecx], edx
mov edx, dword [eax - 0x1c]
mov dword [ecx + 4], edx
mov edx, dword [eax - 0x18]
mov dword [ecx + 8], edx
mov edx, dword [eax - 0x14]
mov dword [ecx + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax - 0xc]
fstp st(0)
mov dword [ecx + 0x14], edx
jne 0x43915e
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edx
mov dword [esi + 0x5c], ebp
fild qword [esp + 0x58]
fld dword [esp + 0x50]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
fdiv st(1)
call fcn.007a2dec
fld dword [esp + 0x4c]
fdiv st(1)
mov dword [esi + 0x74], eax
call fcn.007a2dec
pop edi
mov dword [esi + 0x78], eax
fstp st(0)
pop ebp
pop esi
pop ebx
add esp, 0x1cc8
ret 0xc