Function at 0x468308
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 3
xor edi, edi
push ebp
push 0x468584
push dword fs:[edi]
mov dword fs:[edi], esp
mov eax, 0x8001
call fcn.0040271c
mov dword [ebp - 0x18], eax
xor edi, edi
push ebp
push 0x468573
push dword fs:[edi]
mov dword fs:[edi], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
cmp eax, dword [ebp + 8]
jbe 0x46855d
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.004610e0
xor esi, esi
push 0
lea eax, [ebp - 0x14]
push eax
push 0x8000
mov ebx, dword [ebp - 0x18]
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_ReadFile_1
cmp dword [ebp - 0x14], 0
jne 0x46839c
call fcn.004036a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46858e
mov edx, ebx
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x46854d
inc eax
xor ebx, ebx
xor ecx, ecx
mov cl, byte [edx]
cmp ecx, 0x42
jg 0x4683ce
je 0x4684ae
sub ecx, 0x2a
je 0x4683e5
sub ecx, 3
je 0x468452
jmp 0x468544
sub ecx, 0x50
je 0x4684e0
sub ecx, 2
je 0x468521
jmp 0x468544
mov ecx, esi
shl ecx, 0xf
add ecx, ebx
add ecx, 5
add ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
cmp ecx, dword [edi + 0x40]
jae 0x468544
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 1], 0x2a
jne 0x468544
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 2], 0x41
jne 0x468544
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 3], 0x43
jne 0x468544
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 4], 0x45
jne 0x468544
mov eax, esi
shl eax, 0xf
sub ebx, 7
add eax, ebx
inc eax
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 5
jmp 0x46854d
mov ecx, esi
shl ecx, 0xf
add ecx, ebx
add ecx, 5
add ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
cmp ecx, dword [edi + 0x40]
jae 0x468544
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 1], 0x6c
jne 0x468544
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 2], 0x68
jne 0x468544
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 4], 0x2d
jne 0x468544
mov eax, esi
shl eax, 0xf
add ebx, eax
dec ebx
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x12
jmp 0x46854d
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp dword [ecx], 0x7054842
jne 0x468544
add ecx, 4
cmp dword [ecx], 0x84c3940f
je 0x468544
mov eax, esi
shl eax, 0xf
add ebx, eax
inc ebx
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xb
jmp 0x46854d
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp dword [ecx], 0x4034b50
jne 0x468544
add ecx, 4
cmp dword [ecx], 0x3d0b74
je 0x468544
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x1d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00467c04
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46854d
mov eax, esi
shl eax, 0xf
add ebx, eax
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
jmp 0x46854d
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp dword [ecx], 0x21726152
jne 0x468544
mov eax, esi
shl eax, 0xf
add ebx, eax
inc ebx
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x19
jmp 0x46854d
inc edx
inc ebx
dec eax
jne 0x4683ac
cmp dword [ebp - 0x10], 0
ja 0x46855d
inc esi
cmp esi, 6
jne 0x46836c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46857a
mov eax, dword [ebp - 0x18]
call fcn.00402734
ret
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4