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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1013c014]
xor eax, esp
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x18], ecx
cmp byte [esi + 0x18c], 0
je 0x10059774
mov eax, dword [esi + 0x184]
add eax, dword [esi + 0x120]
cmp dword [edx + 4], eax
jl 0x100598be
xor edi, edi
cmp byte [esi + 0x18d], 0
je 0x1005979c
mov eax, dword [esi + 0x17c]
sub eax, dword [esi + 0x184]
add eax, dword [esi + 0x120]
cmp dword [edx + 4], eax
jl 0x1005979c
mov edi, dword [esi + 0x178]
mov ecx, dword [esi + 0xa4]
mov eax, 0x30c30c31
sub ecx, dword [esi + 0xa0]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
cmp edi, eax
jge 0x100598be
imul eax, edi, 0x54
mov dword [esp + 0x10], eax
nop dword [eax]
push 0
push edi
mov ecx, esi
call fcn.1005b2c0
test al, al
je 0x100598ae
mov edx, dword [esp + 0x10]
add edx, dword [esi + 0xa0]
movups xmm0, xmmword [edx + 0x20]
movups xmmword [esp + 0x20], xmm0
cmp dword [edx], 0x2f
mov ecx, dword [esp + 0x2c]
jne 0x1005980c
mov eax, dword [esp + 0x24]
sub eax, ecx
add eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
cmp dword [esi + 0x17c], 0
jle 0x10059835
cmp edi, dword [esi + 0x178]
jge 0x10059835
mov eax, dword [esi + 0x180]
neg eax
push eax
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x10059896
mov eax, dword [esi + 0x1d0]
cmp eax, dword [esi + 0x1d4]
jle 0x10059868
cmp edi, dword [esi + 0x1c8]
jl 0x10059868
sub ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
imul ecx, dword [esi + 0x1d8]
neg ecx
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x10059896
cmp byte [ebp + 0x10], 0
je 0x10059896
cmp byte [esi + 0x108], 0
je 0x10059896
mov eax, dword [esp + 0x1c]
dec eax
cmp edi, eax
jge 0x10059896
cmp dword [edx + 0x6c], 0
jne 0x10059896
test byte [edx + 0x84], 8
je 0x10059896
mov eax, dword [edx + 0x78]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x100598d4
add dword [esp + 0x10], 0x54
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x100597d0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100599eb
imul ecx, edi, 0x54
mov byte [eax], 0
add ecx, dword [esi + 0xa0]
test byte [ecx + 0x31], 1
je 0x100599a1
imul eax, dword [ecx + 0x14], 0x128
mov edx, dword [eax + 0x1014c22c]
add edx, dword [eax + 0x1014c230]
cmp dword [ecx + 0x50], 0
jl 0x1005993e
add edx, dword [0x1014e6c8]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
cmp dword [edx], eax
setge al
mov byte [ecx], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx], 0x30
jne 0x10059972
add edx, dword [0x1014e6d8]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
cmp dword [edx], eax
setge al
mov byte [ecx], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc
add edx, dword [eax + 0x1014c21c]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
cmp dword [edx], eax
setge al
mov byte [ecx], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx], 0x30
jne 0x100599eb
cmp dword [ecx + 0x48], 4
jb 0x100599eb
mov edx, dword [esp + 0x14]
movsx eax, word [ecx + 0x4c]
mov edx, dword [edx]
sub edx, dword [esp + 0x20]
cmp edx, eax
jl 0x100599e3
movsx eax, word [ecx + 0x4e]
cmp edx, eax
jge 0x100599e3
mov ecx, dword [esp + 0x18]
mov al, 1
mov byte [ecx], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x18]
xor al, al
mov byte [ecx], al
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc