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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
push esi
push edi
mov esi, ecx
push ebx
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x599641
fldz
mov eax, edi
mov esi, dword [eax + 8]
fcomp dword [esi + 0xc8]
mov edi, dword [edi]
fnstsw ax
test ah, 1
je 0x599635
lea ecx, [esi + 0xb8]
call fcn.005a0af0
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xb4]
mov ecx, str.outline
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5995d6
test dx, dx
je 0x5995d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5995d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5995b0
xor eax, eax
jmp 0x5995db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5995f2
fldz
fcomp dword [esi + 0xac]
fnstsw ax
test ah, 5
jp 0x5995f2
mov al, 1
jmp 0x5995f4
xor al, al
xor ecx, ecx
test al, al
mov eax, dword [esi + 0x18c]
setne cl
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x188]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x5c]
push ecx
add edx, 0x14
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 0x2a8]
call fcn.005a7f90
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
test edi, edi
jne 0x599562
mov esi, dword [esp + 0xc]
push ebp
mov ebp, dword [esi + 0x24]
test ebp, ebp
je 0x5997fe
mov eax, ebp
mov esi, dword [eax + 8]
mov ebp, dword [ebp]
lea ecx, [esi + 0x9c]
call fcn.005a0af0
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], 0xffffffff
mov edi, dword [esi + 0xb4]
mov ecx, str.outline
mov eax, edi
jmp 0x599690
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5996b6
test dx, dx
je 0x5996b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5996b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x599690
xor eax, eax
jmp 0x5996bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
fldz
jne 0x599729
fcom dword [esi + 0xac]
fnstsw ax
test ah, 5
jp 0x599729
fstp st(0)
fld dword [esi + 0x78]
fcomp qword [0x636b40]
fnstsw ax
test ah, 5
mov eax, 2
jnp 0x5996ea
mov eax, 1
mov ecx, dword [esi + 0x180]
push eax
mov eax, dword [esi + 0x184]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x60]
push ecx
add edx, 0x14
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0x190]
call fcn.005a7f90
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
jmp 0x5997f2
mov ecx, str.enlarge
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x599756
test dx, dx
je 0x599752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x599756
add eax, 4
add ecx, 4
test dx, dx
jne 0x599730
xor eax, eax
jmp 0x59975b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x59976c
fcom dword [esi + 0xac]
fnstsw ax
test ah, 5
jnp 0x5997b1
mov ecx, 0x6887bc
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x599799
test dx, dx
je 0x599795
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x599799
add eax, 4
add ecx, 4
test dx, dx
jne 0x599773
xor eax, eax
jmp 0x59979e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5997f0
fcomp dword [esi + 0xac]
fnstsw ax
test ah, 0x41
jp 0x5997f2
jmp 0x5997b3
fstp st(0)
mov eax, dword [esi + 0x184]
mov ecx, dword [esi + 0x180]
push 0
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x60]
push ecx
add edx, 0x14
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x21c]
call fcn.005a7f90
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
jmp 0x5997f2
fstp st(0)
test ebp, ebp
jne 0x59964d
mov esi, dword [esp + 0x10]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x599870
mov eax, edi
mov esi, dword [eax + 8]
mov edi, dword [edi]
lea ecx, [esi + 0x78]
call fcn.005a0af0
mov dword [esp + 0x34], eax
xor eax, eax
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esi + 0x184]
mov ecx, dword [esi + 0x180]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x60]
push ecx
add edx, 0x14
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x190]
call fcn.005a7f90
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
test edi, edi
jne 0x599805
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x3c
ret 8