Function at 0x507c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69bdc1
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push ecx
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xcc], ebx
call fcn.00509090
mov eax, dword [edi]
push 0x80
push 3
push ecx
mov dword [edi + 4], eax
mov ecx, esi
push 0
mov byte [ebx], 0
call fcn.00405860
mov edx, SysReAllocString
mov ecx, eax
call fcn.004d7de0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x507e72
test esi, esi
je 0x507e72
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040d600
call fcn.0040cd90
mov dword [ebp - 4], 0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xd4]
movlpd qword [ebp - 0xd4], xmm0
push eax
push dword [ebp - 0x18]
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
call fcn.00508430
test al, al
je 0x507e00
mov ebx, dword [ebp - 0xd4]
mov ecx, ebx
mov eax, dword [ebp - 0xd0]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x507dfa
jb 0x507d9a
cmp ecx, 0x4ffffe
ja 0x507dfa
lea eax, [ebp - 0xc5]
mov byte [ebp - 0xc5], 0
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.0045dc70
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
call fcn.004028e0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov eax, dword [eax]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp ecx, dword [ebp - 0xd0]
ja 0x507dfa
jb 0x507de4
cmp eax, ebx
jae 0x507dfa
mov byte [ebp - 0xc5], cl
lea ecx, [ebp - 0xc5]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dc70
mov ebx, dword [ebp - 0xcc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.00425220
test al, al
jne 0x507e63
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040d600
call fcn.0040cd90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.005da220
lea ecx, [ebp - 0x30]
call fcn.004028e0
mov edx, dword [eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.00425210
push eax
push edx
lea ecx, [ebp - 0xc4]
call fcn.0047dfe0
test al, al
jne 0x507e92
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00425230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00425230
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x3c]
call fcn.00425210
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x507e54
lea ecx, [ebp - 0x3c]
call fcn.00425210
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov dword [ebp - 0xd0], esi
test esi, esi
je 0x508259
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
push esi
mov ecx, eax
call fcn.00508ac0
lea ecx, [ebp - 0x3c]
call fcn.004028e0
mov ecx, dword [eax]
imul eax, esi, 0x3e8
push eax
push ecx
push dword [ebp - 0x24]
call fcn.0064c510
mov ebx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x20]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x507f94
xor esi, esi
nop
cmp dword [ebx + esi], 0x23ab45db
jne 0x507fe3
inc dword [ebp - 0x18]
xor eax, eax
mov word [ebx + esi + 0x282], ax
mov word [ebx + esi + 0x382], ax
mov word [ebx + esi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x20]
add esi, 0x3e8
mov ebx, dword [ebp - 0x24]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x18], eax
jb 0x507f40
mov esi, dword [ebp - 0xd0]
mov ecx, dword [edi + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [edi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x508061
mov dword [ebp - 0x18], 0x2762762
call fcn.004024b0
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00405e00
add esp, 8
mov eax, dword [eax]
cmp esi, eax
ja 0x50827b
jmp 0x508059
mov ecx, dword [ebp - 0xcc]
mov byte [ecx], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x507e57
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x508035
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x508280
push ecx
push esi
call fcn.00634ee5
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x507e57
push esi
mov ecx, edi
call fcn.00508890
lea ecx, [ebp - 0xa4]
call fcn.005062f0
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
mov esi, dword [ebp - 0x24]
sub ecx, esi
imul ecx
mov dword [ebp - 0x18], esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5081c6
xor eax, eax
mov dword [ebp - 0xd0], eax
nop dword [eax]
add eax, 4
add esi, eax
push esi
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0xa4]
push eax
push esi
call fcn.00405b20
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xd0]
add ecx, 0x284
add esi, ecx
push esi
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x8c]
push eax
push esi
call fcn.00405b20
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xd0]
mov eax, dword [ecx + edx + 0x3cc]
lea esi, [edx + 0x384]
mov dword [ebp - 0x5c], eax
add esi, ecx
mov eax, dword [ecx + edx + 0x3d0]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + edx + 0x3d4]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + edx + 0x3d8]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + edx + 0x3dc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + edx + 0x3e0]
push esi
mov dword [ebp - 0x48], eax
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x74]
push eax
push esi
call fcn.00405b20
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xd0]
mov eax, dword [ecx + esi + 0x3e4]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 4]
mov byte [ebp - 0x40], 0
cmp dword [edi + 8], eax
je 0x508180
push eax
push 0x68
call fcn.004024a0
add esp, 8
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.00506bd0
add dword [edi + 4], 0x68
jmp 0x50818f
lea ecx, [ebp - 0xa4]
push ecx
push eax
mov ecx, edi
call fcn.00508e90
mov ecx, dword [ebp - 0x20]
add esi, 0x3e8
mov dword [ebp - 0xd0], esi
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x24]
inc ebx
sub ecx, esi
mov dword [ebp - 0x18], esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov eax, dword [ebp - 0xd0]
jb 0x5080a0
mov ecx, dword [ebp - 0xcc]
mov byte [ecx], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.00405870
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00405870
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.00405870
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x508259
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x50823a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x508285
push ecx
push esi
call fcn.00634ee5
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00425230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00425230
mov al, 1
jmp 0x507e74
call fcn.0040d4c0
call fcn.00655f64
call fcn.00655f64
int3