Function at 0x502740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578b10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0xc], 0
jg 0x50278a
jl 0x502785
mov eax, dword [ebp - 0x64]
cmp dword [eax + 8], 0
jae 0x50278a
jmp 0x502926
push 0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 4]
push edx
call fcn.0054033f
add esp, 0xc
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call fcn.004ffcf0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x5027de
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call fcn.004ffcf0
push eax
push 1
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
call fcn.00500db0
push eax
call fcn.005459d3
add esp, 0x10
mov edx, dword [ebp - 0x60]
mov ecx, dword [edx]
call fcn.00500dd0
mov eax, dword [ebp - 0x60]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
call fcn.004ffcf0
xor edx, edx
add eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
adc ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0
jmp 0x502819
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
call fcn.00500ea0
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
call fcn.004a6180
cmp dword [ebp - 0x20], eax
sbb eax, eax
neg eax
mov byte [ebp - 0x29], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004746f0
movzx ecx, byte [ebp - 0x29]
test ecx, ecx
je 0x502926
mov edx, dword [ebp - 0x60]
mov ecx, dword [edx]
call fcn.004fe490
mov esi, eax
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
mov ecx, dword [edx]
call fcn.00500ea0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
call fcn.0045fcc0
mov ecx, dword [eax]
mov edx, dword [esi + ecx*4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004746f0
cmp dword [ebp - 0x24], 0x100
jae 0x50290e
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
call fcn.00500e80
mov ecx, eax
call fcn.0041cd70
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.00408b90
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov ecx, dword [ebp - 0x28]
call fcn.0040895a
push eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
push ecx
call fcn.00503c10
add esp, 0x14
push 0
mov ecx, dword [ebp - 0x28]
call fcn.0040f2a0
mov edx, dword [ebp - 0x24]
xor eax, eax
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
adc ecx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
jmp 0x502810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret