Function at 0x507490
Capabilities:
Capture screenshot
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x6524b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x20]
push eax
call dword [fcn.0065f510]
push eax
call fcn.00644092
mov ebx, eax
mov eax, dword [esi + 0x90]
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x507592
lea ecx, [esp + 0x18]
call fcn.0064414c
test ebx, ebx
mov dword [esp + 0x50], 0
jne 0x5074ee
xor eax, eax
jmp 0x5074f1
mov eax, dword [ebx + 4]
push eax
call dword [fcn.0065e0d0]
push eax
lea ecx, [esp + 0x1c]
call fcn.00644146
lea eax, [esi + 0x94]
test eax, eax
je 0x50750f
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00644140
mov edx, dword [esi + 0xc]
mov ebp, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edi, eax
mov eax, dword [esi + 8]
sub edx, ebp
sub ecx, eax
mov ebp, eax
lea eax, [esp + 0x18]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esi + 4]
push ecx
push edx
mov edx, dword [ebx + 4]
push ebp
push eax
push edx
call dword [fcn.0065e0cc]
test edi, edi
je 0x50755c
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.00644140
lea ecx, [esp + 0x18]
call fcn.00644134
mov esi, dword [esi + 0x14]
mov ecx, dword [ebx + 4]
push ecx
mov edx, dword [esi + 0x20]
push edx
call dword [fcn.0065f4e8]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x507903
lea ebp, [esi + 0x94]
mov ecx, ebp
call fcn.0064406e
lea ecx, [esp + 0x38]
call fcn.0064414c
test ebx, ebx
mov dword [esp + 0x50], 1
jne 0x5075b8
xor eax, eax
jmp 0x5075bb
mov eax, dword [ebx + 4]
push eax
call dword [fcn.0065e0d0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00644146
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
lea edi, [esi + 4]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
mov eax, dword [ebx + 4]
sub ecx, edx
push ecx
push eax
call dword [fcn.0065e0c8]
push eax
mov ecx, ebp
call fcn.006440f8
test ebp, ebp
je 0x5075fa
mov ebp, dword [ebp + 4]
mov ecx, dword [esp + 0x3c]
push ebp
push ecx
call fcn.00644140
mov edx, dword [0x73a898]
mov dword [esp + 0x2c], eax
mov eax, esi
push edx
neg eax
sbb eax, eax
lea ecx, [esp + 0x3c]
and eax, edi
push eax
call fcn.00643ed0
push 1
lea ecx, [esp + 0x3c]
call fcn.0064412e
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.00507d20
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x661a2c
push 0x69af60
push 0
push 4
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0x20
mov byte [esp + 0x88], 2
call dword [fcn.0065e0c0]
push eax
lea ecx, [esp + 0x34]
call fcn.006440f8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00644128
lea edx, [esp + 0x38]
mov ecx, esi
push edx
mov dword [esp + 0x2c], eax
call fcn.00507bb0
mov ebp, eax
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x5076c1
mov eax, dword [edi + 8]
mov edx, dword [edi]
sub eax, edx
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x88], eax
jmp 0x5076ec
mov ecx, dword [edi + 8]
mov edx, dword [edi]
lea eax, [ebp + ebp]
sub ecx, eax
mov eax, 0x55555556
sub ecx, edx
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esi + 0x88], edx
lea edx, [ebp + edx*2]
mov dword [esi + 0x8c], edx
mov edx, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov eax, 0xfffffff6
add edx, eax
add ecx, eax
lea eax, [esp + 0x38]
mov dword [esi + 0x8c], ecx
push eax
mov ecx, esi
mov dword [esi + 0x88], edx
call fcn.00507c40
mov ecx, dword [0x73a8a0]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00644122
mov eax, dword [esi + 0x1c]
xor ebp, ebp
test eax, eax
jle 0x5077e9
mov ebx, 0xfffffe75
mov eax, dword [esi + 0x18]
cmp ebx, 0x3c
jge 0x50778e
add eax, ebp
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea ecx, [eax*8 + 0x6ae258]
push ecx
lea ecx, [esp + 0x14]
call fcn.00643d2c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x88]
mov byte [esp + 0x50], 3
mov edx, dword [ecx - 8]
push edx
lea edx, [ebx + 0x1c7]
push ecx
push edx
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [eax + 0x64]
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x10]
jmp 0x5077d1
add eax, ebp
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea ecx, [esp + 0x14]
lea eax, [edx*8 + 0x6ae258]
push eax
call fcn.00643d2c
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x8c]
mov byte [esp + 0x50], 4
mov edx, dword [ecx - 8]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push ebx
push eax
lea ecx, [esp + 0x48]
call dword [edx + 0x64]
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x14]
call fcn.00643d26
mov eax, dword [esi + 0x1c]
inc ebp
add ebx, 0x23
cmp ebp, eax
jl 0x50773b
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
cmp ecx, 0xd
jge 0x50780d
mov ebp, dword [esi + 0x88]
lea eax, [ecx*8]
sub ebp, 0x28
sub eax, ecx
lea eax, [eax + eax*4 + 0x3c]
mov dword [esp + 0x1c], eax
jmp 0x50782a
mov ebp, dword [esi + 0x8c]
lea eax, [ecx*8]
sub ebp, 0x28
sub eax, ecx
lea ecx, [eax + eax*4 - 0x18b]
mov dword [esp + 0x1c], ecx
call fcn.00643d14
mov eax, dword [eax + 0xc]
push 0x85
push eax
call dword [fcn.0065f49c]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x40]
push edx
push ebp
push eax
call dword [fcn.0065f5d0]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov ebp, dword [edi]
sub ecx, eax
lea eax, [esp + 0x38]
sub edx, ebp
mov ebp, dword [esi + 8]
neg eax
mov edi, dword [edi]
push 0xcc0020
sbb eax, eax
push 0
and eax, dword [esp + 0x44]
push 0
push eax
push ecx
mov ecx, dword [ebx + 4]
push edx
push ebp
push edi
push ecx
call dword [fcn.0065e0cc]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push edx
call fcn.00644128
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5078a1
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00644140
lea ecx, [esp + 0x30]
call fcn.0064406e
lea ecx, [esp + 0x38]
call fcn.00644134
mov eax, dword [esi + 0x14]
mov ecx, dword [ebx + 4]
push ecx
mov edx, dword [eax + 0x20]
push edx
call dword [fcn.0065f4e8]
mov dword [esi + 0x90], 0
mov dword [esp + 0x30], 0x661578
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 5
call fcn.0064406e
mov dword [esp + 0x30], 0x6602dc
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0064411c
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret