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

Disassembly:
push 0xffffffffffffffff
push 0x5ad3bb
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 1
call fcn.00430d10
xor ebp, ebp
cmp eax, ebp
je 0x53ad77
lea ecx, [esp + 0x44]
mov dword [eax], ecx
jmp 0x53ad79
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0xec], ebp
cmp esi, ebp
jne 0x53adb8
lea esi, [esp + 0x44]
call fcn.0053b7e0
mov edx, dword [esp + 0x44]
push edx
call fcn.005851f0
add esp, 4
mov eax, 0x80004005
jmp 0x53b148
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0xfc]
mov ebx, dword [esp + 0x30]
add eax, ecx
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
add ecx, edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x110]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x3c], edx
mov edx, dword [esi]
add ebx, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xac]
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x70], ebx
call eax
test eax, eax
je 0x53af14
cmp dword [esi + 0xf4], ebp
jne 0x53af14
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x53af14
mov edx, dword [esp + 0x18]
fld1
mov ecx, dword [esp + 0x14]
fstp qword [esp + 0x8c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x74]
mov dword [esp + 0x84], eax
push edx
lea eax, [esp + 0x48]
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], esi
mov dword [esp + 0x8c], ecx
call fcn.0053b780
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xf4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call fcn.0053aac0
add esp, 0x24
mov esi, dword [esp + 0x60]
cmp esi, ebp
je 0x53b130
mov eax, dword [esp + 0x5c]
add esi, eax
cmp eax, esi
jbe 0x53af2f
call fcn.00588c45
mov eax, dword [esp + 0x44]
mov edi, eax
mov ebx, edi
mov dword [esp + 0xb8], esi
cmp eax, ebp
jne 0x53af5e
call fcn.00588c45
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec esi
cmp esi, ecx
ja 0x53af6b
cmp edi, ebp
je 0x53af64
mov edi, dword [edi]
jmp 0x53af66
mov eax, dword [eax]
mov ecx, eax
jmp 0x53af4b
xor edi, edi
cmp esi, dword [edi + 0x18]
jae 0x53af70
call fcn.00588c45
mov dword [esp + 0x68], esi
lea esi, [esp + 0x64]
mov dword [esp + 0x64], ebx
call fcn.0051f920
mov edi, eax
mov ecx, dword [edi + 4]
inc dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
mov edx, dword [edi]
cmp edx, eax
jge 0x53b162
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x44]
call edx
mov esi, eax
cmp esi, ebp
je 0x53b124
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
lea ebp, [ecx + eax]
mov ecx, dword [esp + 0xfc]
add eax, ebx
mov ebx, dword [esp + 0xb0]
add edx, ecx
add ecx, ebx
lea ebx, [edi + 8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebx]
mov dword [esp + 0x38], edx
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x9c], edx
mov edx, dword [esi]
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [edx + 0xac]
mov ecx, esi
mov dword [esp + 0x74], ebp
call eax
test eax, eax
je 0x53b122
cmp dword [esi + 0xf4], 0
jne 0x53b122
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x53b122
fld qword [edi + 0x18]
mov edx, dword [esp + 0x18]
fld qword [0x5e7a28]
mov ecx, dword [esp + 0x14]
fmul st(1), st(0)
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xc4], ecx
fdivp st(1)
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xbc]
mov dword [esp + 0xcc], eax
push edx
lea eax, [esp + 0x48]
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0xc4], esi
mov dword [esp + 0xd4], ecx
fstp qword [esp + 0xd8]
call fcn.0053b780
sub esp, 0x10
mov dword [esp + 0xc4], esp
mov eax, esp
push ebx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x104]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], edx
push esi
mov dword [eax + 0xc], ecx
call fcn.0053aac0
add esp, 0x24
xor ebp, ebp
mov esi, dword [esp + 0x60]
cmp esi, ebp
jne 0x53af20
lea esi, [esp + 0x44]
call fcn.0053b7e0
mov edx, dword [esp + 0x44]
push edx
call fcn.005851f0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret
mov esi, dword [esp + 0x60]
cmp esi, ebp
je 0x53b130
sub esi, 1
mov dword [esp + 0x60], esi
jne 0x53af20
mov dword [esp + 0x5c], ebp
jmp 0x53b124