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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xac], ebx
cmp dword [ebx + 0x50], 0
mov dword [ebp - 0x9c], edi
je 0x55a05f
test edi, edi
je 0x55a05f
push esi
mov esi, dword [ebx + 0x4c]
test esi, esi
je 0x55a05e
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x55a05e
mov eax, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov dword [ebx + 0x5c], ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
cmp dword [ebx + 0x14], eax
jg 0x55a05e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx + 0x5c]
cmp ecx, eax
jg 0x55a05e
mov eax, dword [esi + 0x78]
sub eax, dword [esi + 0x74]
sar eax, 2
test eax, eax
je 0x559f0a
mov ecx, dword [ebx + 0x48]
add ecx, 0x48
call fcn.005197b0
test eax, eax
je 0x559f0a
mov eax, dword [esi + 0x78]
xor edx, edx
mov ecx, dword [esi + 0x74]
xorps xmm0, xmm0
sub eax, ecx
mov dword [ebp - 0xb0], edx
movups xmmword [ebp - 0x64], xmm0
test eax, 0xfffffffc
jle 0x559f0a
nop dword [eax]
mov eax, dword [ecx + edx*4]
lea edi, [edx*4]
cmp dword [eax + 0x2c], 0
je 0x559f04
push eax
mov ecx, ebx
call fcn.0052eba0
mov ecx, dword [esi + 0x74]
mov dword [ebp - 0x98], eax
push dword [ecx + edi]
mov ecx, ebx
call fcn.0052f0e0
test eax, eax
je 0x559ee4
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ebp - 0xb0]
mov edx, dword [esi + 0x74]
cmp eax, dword [ecx + 0x80]
jne 0x5597a1
mov eax, dword [edi + edx]
test dword [eax], 0x1000
jne 0x5597a1
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 0x64]
jmp 0x5597aa
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 0x60]
cmp dword [ecx + 0x84], 0
mov dword [ebp - 0xa4], eax
je 0x55989c
mov eax, dword [edi + edx]
push dword [ebx + 0x5c]
push 0
movups xmm0, xmmword [eax + 0xc]
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x74]
mov ecx, dword [edi + eax]
mov eax, dword [ecx]
test eax, 0x200000
je 0x55985c
push eax
call fcn.005197d0
mov eax, dword [ebp - 0xa8]
add esp, 4
fstp dword [ebp - 0xa0]
movss xmm0, dword [ebp - 0xa0]
mulss xmm0, dword [0x64ad84]
push 1
push 0xffffffffffffffff
push dword [eax + 0x144]
call fcn.005e2530
mov edx, dword [ebp - 0x30]
shl eax, 0x18
or eax, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x34]
add eax, 0x48
push eax
mov eax, dword [esi + 0x74]
push 0
mov eax, dword [eax + edi]
push dword [eax + 8]
mov eax, dword [ebp - 0x28]
sub eax, edx
push eax
mov eax, dword [ebp - 0x2c]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x9c]
mov ecx, ebx
call fcn.0052e450
jmp 0x55989c
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x30]
push 1
push 0xffffffffffffffff
push dword [eax + 0x144]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0xa4]
sub eax, edx
push dword [ebp - 0x98]
push dword [ecx + 8]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x9c]
mov ecx, ebx
call fcn.0052e6c0
mov eax, dword [esi + 0x74]
mov eax, dword [edi + eax]
mov dword [ebp - 0xa0], eax
mov ecx, dword [eax]
test cl, 4
jne 0x5599ba
test ecx, 0x5800
jne 0x5599ba
test cl, 0x10
je 0x559953
push dword [ebx + 0x5c]
movups xmm0, xmmword [eax + 0x1c]
push 0
lea eax, [ebp - 0x64]
push eax
movups xmmword [ebp - 0x64], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x74]
mov ecx, ebx
push dword [eax + edi]
call fcn.0052eab0
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x559a11
mov ecx, dword [ebx + 0x50]
call fcn.00514df0
mov edx, dword [ebp - 0xa8]
mov ecx, dword [esi + 0x74]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [edx + 0x144]
mov ecx, dword [edi + ecx]
push eax
lea eax, [edx + 0x64]
push eax
lea eax, [edx + 0x60]
push eax
push dword [ebp - 0xa0]
lea eax, [ecx + 0x34]
push dword [ecx]
push eax
lea eax, [ecx + 0x30]
push eax
push dword [ecx + 4]
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
push dword [ebp - 0x9c]
call fcn.0052f120
jmp 0x559a11
test cl, 8
je 0x559a11
push dword [ebx + 0x5c]
movups xmm0, xmmword [eax + 0x1c]
push 0
lea eax, [ebp - 0x64]
push eax
movups xmmword [ebp - 0x64], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x74]
mov ecx, ebx
mov eax, dword [edi + eax]
push dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x64]
push 1
push eax
push dword [ebp - 0x9c]
push eax
call fcn.0052fa10
mov eax, dword [esi + 0x74]
movups xmm0, xmmword [ebp - 0x64]
mov eax, dword [eax + edi]
movups xmmword [eax + 0x3c], xmm0
mov eax, dword [ebx + 0x5c]
neg eax
push eax
mov eax, dword [esi + 0x74]
push 0
mov eax, dword [eax + edi]
add eax, 0x3c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x559a11
mov ebx, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
push 1
push 0xffffffffffffffff
push dword [ebx + 0x144]
mov ebx, dword [ebp - 0xac]
push dword [ebp - 0xa4]
push dword [ebp - 0x98]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 4]
mov eax, dword [eax + 0x28]
sub eax, ecx
push eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0x24]
sub eax, edx
push eax
mov eax, dword [ebx + 0x5c]
add eax, ecx
mov ecx, ebx
push eax
push edx
push dword [ebp - 0x9c]
call fcn.0052f480
mov eax, dword [ebx + 0x4c]
cmp dword [eax + 0x2c], 2
jne 0x559afe
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x559afe
mov eax, dword [esi + 0x74]
mov edx, dword [edi + eax]
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x559afe
mov eax, dword [edx + 0x44]
sub eax, dword [edx + 0x3c]
je 0x559afe
mov eax, dword [edx + 0x48]
sub eax, dword [edx + 0x40]
je 0x559afe
push ecx
mov ecx, dword [ebp - 0xa0]
call fcn.0054e8b0
mov dword [ebp - 0x98], eax
test eax, eax
je 0x559afe
mov edx, dword [eax]
mov ecx, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call dword [edx + 4]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebx + 0x5c]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x74]
push 0
mov eax, dword [eax + edi]
movups xmm0, xmmword [eax + 0x3c]
lea eax, [ebp - 0x74]
push eax
movups xmmword [ebp - 0x74], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x74]
push 0xff
push eax
call fcn.0051c3a0
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x74]
push 0
push 1
push 0
push eax
mov eax, dword [ebp - 0x68]
sub eax, edx
push eax
mov eax, dword [ebp - 0x6c]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
call fcn.0051dd40
mov eax, dword [esi + 0x74]
xor ecx, ecx
mov dword [ebp - 0xa4], ecx
mov eax, dword [edi + eax]
mov dword [ebp - 0xa0], eax
mov eax, dword [eax]
test eax, 0x2000
jne 0x559c13
mov edx, eax
and edx, 0x40000
jne 0x559bf8
test eax, 0x3000000
jne 0x559bf8
test eax, 0x400100
je 0x559ee4
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x559ee4
mov eax, dword [eax + 0x58]
test eax, eax
je 0x559ee4
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x559ee4
mov eax, dword [ebp - 0xa0]
push dword [ebx + 0x5c]
push edx
movups xmm0, xmmword [eax + 0x4c]
lea eax, [ebp - 0x94]
push eax
movups xmmword [ebp - 0x94], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x94]
push 0xff
push eax
call fcn.0051c3a0
push ecx
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0xa0]
mov dword [esp], 0x3f19999a
push dword [ebp - 0x9c]
mov dword [ebp - 0xa0], 0
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0053abe0
mov eax, dword [esi + 0x74]
lea ecx, [ebx + 0x128]
mov eax, dword [eax + edi]
add eax, 0x4c
push eax
call fcn.0051a690
mov dword [ebx + 0x158], 1
jmp 0x559ee4
test edx, edx
je 0x559c04
lea ecx, [ebx + 0xe8]
jmp 0x559c19
test eax, 0x3000000
je 0x559c1f
lea ecx, [ebx + 0x168]
jmp 0x559c19
lea ecx, [ebx + 0xa8]
mov dword [ebp - 0xa4], ecx
push 0
call fcn.00519860
mov dword [ebp - 0x98], eax
test eax, eax
je 0x559d46
mov ecx, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call fcn.004160b0
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x3c], eax
call fcn.004160a0
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x74]
movups xmm0, xmmword [ebp - 0x44]
mov edx, dword [eax + edi]
movups xmmword [ebp - 0xd4], xmm0
test byte [edx], 8
je 0x559cbb
movups xmm0, xmmword [edx + 0x4c]
mov eax, dword [edx + 0x44]
mov ecx, dword [edx + 0x40]
inc eax
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xc4], eax
sub eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x3c]
cmp dword [edx + 0x10], ecx
mov dword [ebp - 0xbc], eax
cmovl ecx, dword [edx + 0x10]
mov dword [ebp - 0xc0], ecx
sub ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0xb8], ecx
movups xmm0, xmmword [ebp - 0xc4]
movups xmmword [edx + 0x4c], xmm0
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi]
push dword [ebx + 0x5c]
push 0
movups xmm0, xmmword [eax + 0x4c]
lea eax, [ebp - 0x84]
push eax
movups xmmword [ebp - 0x84], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push 0xff
push eax
call fcn.0051c3a0
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
push 0
push 1
push 0
push eax
mov eax, dword [ebp - 0x78]
sub eax, edx
push eax
mov eax, dword [ebp - 0x7c]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
call fcn.0051dc40
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [eax + edi]
add eax, 0x4c
push eax
call fcn.0051a690
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x30], 1
mov eax, dword [esi + 0x74]
mov eax, dword [edi + eax]
test dword [eax], 0x2000000
je 0x559ee4
lea ecx, [ebx + 0x1a8]
push 0
call fcn.00519860
mov dword [ebp - 0x98], eax
test eax, eax
je 0x559ee4
mov ecx, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004160b0
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x1c], eax
call fcn.004160a0
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x74]
mov edx, dword [eax + edi]
test byte [edx], 8
je 0x559def
movups xmm0, xmmword [edx + 0x4c]
mov eax, dword [edx + 0x44]
mov ecx, dword [edx + 0x40]
inc eax
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xc4], eax
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
cmp dword [edx + 0x10], ecx
mov dword [ebp - 0xbc], eax
cmovl ecx, dword [edx + 0x10]
mov dword [ebp - 0xc0], ecx
sub ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0xb8], ecx
movups xmm0, xmmword [ebp - 0xc4]
movups xmmword [edx + 0x4c], xmm0
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi]
mov ecx, dword [ebp - 0xcc]
sub ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xc8]
add ecx, 2
movups xmm0, xmmword [eax + 0x4c]
movups xmmword [ebp - 0x14], xmm0
movd eax, xmm0
add eax, ecx
mov ecx, edx
sub ecx, dword [ebp - 0xd0]
sub edx, dword [ebp - 0xd0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
add eax, ecx
mov ecx, dword [ebp - 0xcc]
sub ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, 2
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x74]
movups xmm0, xmmword [ebp - 0x14]
mov eax, dword [eax + edi]
movups xmmword [eax + 0x4c], xmm0
lea eax, [ebp - 0x14]
push dword [ebx + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x14]
push 0xff
push eax
call fcn.0051c3a0
push 0
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x24]
push 1
push 0
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x98]
call fcn.0051dc40
mov eax, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
sub eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0051a690
mov dword [ebx + 0x1d8], 1
mov eax, dword [esi + 0x78]
mov edx, dword [ebp - 0xb0]
mov ecx, dword [esi + 0x74]
inc edx
sub eax, ecx
mov dword [ebp - 0xb0], edx
sar eax, 2
cmp edx, eax
jl 0x559740
mov edi, dword [ebp - 0x9c]
cmp dword [ebx + 0x98], 0
je 0x559f83
mov eax, dword [ebx + 0x4c]
lea ecx, [ebx + 0x68]
push dword [eax + 0x1c]
call fcn.00519860
mov esi, eax
test esi, esi
je 0x559f83
mov ecx, esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.004160b0
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.004160a0
mov dword [ebp - 0x48], eax
mov ecx, edi
push 0xff
lea eax, [ebx + 0x68]
push eax
call fcn.0051c3a0
mov edx, dword [ebx + 0x68]
lea eax, [ebp - 0x54]
push 0
push 1
push 0
push eax
mov eax, dword [ebx + 0x74]
mov ecx, edi
sub eax, dword [ebx + 0x6c]
push eax
mov eax, dword [ebx + 0x70]
sub eax, edx
push eax
mov eax, dword [ebx + 0x5c]
add eax, dword [ebx + 0x6c]
push eax
push edx
push esi
call fcn.0051dc40
push 0
mov ecx, ebx
call fcn.0052f020
test eax, eax
je 0x55a05e
push 0
mov ecx, ebx
call fcn.0052f020
mov ecx, eax
mov dword [ebp - 0xb4], eax
call fcn.005197b0
test eax, eax
je 0x55a05e
mov ecx, dword [ebx + 0x4c]
push 0
call fcn.00537700
test eax, eax
je 0x55a05e
mov ecx, dword [ebx + 0x4c]
push 0
call fcn.00537630
mov ecx, dword [ebx + 0x4c]
push 0
lea esi, [eax + 0x14]
mov dword [ebp - 0x98], esi
call fcn.00537630
mov edi, dword [esi + 0xc]
mov ecx, dword [ebp - 0xac]
sub edi, dword [esi + 4]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x98]
mov esi, dword [esi + 8]
mov ecx, dword [ecx + 0x4c]
push 0
sub esi, dword [eax]
call fcn.00537630
mov edx, dword [ebp - 0xb4]
push 1
push 0xffffffffffffffff
movzx ecx, byte [eax + 0xc]
mov eax, dword [ebp - 0xa8]
shl ecx, 0x18
push dword [eax + 0x134]
mov eax, dword [edx + 0x18]
or eax, ecx
push eax
mov eax, dword [ebp - 0xac]
push edx
push 0
mov ecx, dword [eax + 0x4c]
call fcn.005376d0
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0xac]
push eax
push ebx
mov eax, dword [ecx + 4]
add eax, dword [edx + 0x5c]
push edi
push esi
push eax
push dword [ecx]
mov ecx, edx
push dword [ebp - 0x9c]
call fcn.0052e450
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 8