Function at 0x583d10
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 0x583e11
fldz
mov eax, edi
mov esi, dword [eax + 8]
fcomp dword [esi + 0xc8]
mov edi, dword [edi]
fnstsw ax
test ah, 1
je 0x583e05
lea ecx, [esi + 0xb8]
call fcn.0058b290
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 0x583da6
test dx, dx
je 0x583da2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x583da6
add eax, 4
add ecx, 4
test dx, dx
jne 0x583d80
xor eax, eax
jmp 0x583dab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x583dc2
fldz
fcomp dword [esi + 0xac]
fnstsw ax
test ah, 5
jp 0x583dc2
mov al, 1
jmp 0x583dc4
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.00592750
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
test edi, edi
jne 0x583d32
mov esi, dword [esp + 0xc]
push ebp
mov ebp, dword [esi + 0x24]
test ebp, ebp
je 0x583fce
mov eax, ebp
mov esi, dword [eax + 8]
mov ebp, dword [ebp]
lea ecx, [esi + 0x9c]
call fcn.0058b290
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 0x583e60
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x583e86
test dx, dx
je 0x583e82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x583e86
add eax, 4
add ecx, 4
test dx, dx
jne 0x583e60
xor eax, eax
jmp 0x583e8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
fldz
jne 0x583ef9
fcom dword [esi + 0xac]
fnstsw ax
test ah, 5
jp 0x583ef9
fstp st(0)
fld dword [esi + 0x78]
fcomp qword [0x617cc0]
fnstsw ax
test ah, 5
mov eax, 2
jnp 0x583eba
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.00592750
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
jmp 0x583fc2
mov ecx, str.enlarge
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x583f26
test dx, dx
je 0x583f22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x583f26
add eax, 4
add ecx, 4
test dx, dx
jne 0x583f00
xor eax, eax
jmp 0x583f2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x583f3c
fcom dword [esi + 0xac]
fnstsw ax
test ah, 5
jnp 0x583f81
mov ecx, 0x668e8c
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x583f69
test dx, dx
je 0x583f65
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x583f69
add eax, 4
add ecx, 4
test dx, dx
jne 0x583f43
xor eax, eax
jmp 0x583f6e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x583fc0
fcomp dword [esi + 0xac]
fnstsw ax
test ah, 0x41
jp 0x583fc2
jmp 0x583f83
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.00592750
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
jmp 0x583fc2
fstp st(0)
test ebp, ebp
jne 0x583e1d
mov esi, dword [esp + 0x10]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x584040
mov eax, edi
mov esi, dword [eax + 8]
mov edi, dword [edi]
lea ecx, [esi + 0x78]
call fcn.0058b290
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.00592750
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_UnionRect]
test edi, edi
jne 0x583fd5
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x3c
ret 8