Function at 0x46e264
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x46e26c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e7fd
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x9a4], edx
mov eax, dword [ebp - 4]
add eax, 0x4a0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
call fcn.00403b8c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x448], edx
mov dword [eax + 0x44c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov edx, dword [eax]
call dword [edx + 0x40]
xor edx, edx
push ebp
push 0x46e7d1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x46e2f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0040909c
test al, al
jne 0x46e320
push 0x46e818
push 0x6254
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7df
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ca], 0
jne 0x46e357
push 0x46e818
push 0x62b6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov ecx, 0x46e824
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7df
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
sub al, 1
jb 0x46e369
dec al
je 0x46e390
dec al
jne 0x46e3b7
push 0x46e818
push 0x62ef
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7df
push 0x46e818
push 0x6254
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7df
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0x15
jne 0x46e3d9
mov dl, 1
mov eax, dword [0x40f7d0]
call fcn.00402e80
mov edx, dword [ebp - 4]
mov dword [edx + 0x9a8], eax
xor edx, edx
push ebp
push 0x46e7bd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
sub al, 8
je 0x46e3f5
sub al, 4
jne 0x46e465
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0040909c
test al, al
jne 0x46e465
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.00408e20
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00404f8c
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x4a0]
mov eax, dword [ebp - 4]
call fcn.00464510
test al, al
jne 0x46e451
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
call fcn.004036a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7df
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4a0]
call fcn.00403b8c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00467fd0
test al, al
jne 0x46e4a6
push 0x46e818
push 0x6294
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
call fcn.004036a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7df
mov eax, dword [ebp - 4]
cmp word [eax + 0x33a], 0
je 0x46e4c5
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x33c]
call dword [ebx + 0x338]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
add al, 0xf8
sub al, 2
jae 0x46e4e4
mov eax, 0xa28
call fcn.0040271c
mov edx, dword [ebp - 4]
mov dword [edx + 0x9a4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00469c40
mov eax, dword [ebp - 4]
cmp word [eax + 0x36a], 0
je 0x46e50a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
call fcn.00461e14
xor edx, edx
push ebp
push 0x46e6fc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
dec eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x470], eax
jmp 0x46e5ec
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x46e613
mov eax, dword [0x482938]
mov eax, dword [eax]
call fcn.0044c16c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
inc eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov ebx, eax
dec ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x470], ebx
mov eax, ebx
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x484]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
ja 0x46e613
mov edx, ebx
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.004610e0
test al, al
jne 0x46e5ac
push 0
push 0x46e818
push 0x6294
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov edx, dword [0x4663d0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x68]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x484]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c0]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile_1
cmp dword [ebp - 0x10], 0
je 0x46e613
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add dword [eax + 0x470], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0046be78
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x470]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x484]
add edx, eax
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x468]
jae 0x46e613
test eax, eax
jg 0x46e52d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e706
mov eax, dword [ebp - 4]
cmp word [eax + 0x36a], 0
je 0x46e63b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
call fcn.00461e28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9a4]
test eax, eax
je 0x46e64d
call fcn.00402734
mov eax, dword [ebp - 4]
cmp word [eax + 0x9ea], 0
je 0x46e6b3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
call fcn.00464904
mov ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x490], bl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x488]
push eax
xor eax, eax
mov al, bl
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48c]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x9ec]
call dword [ebx + 0x9e8]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0x15
jne 0x46e6fb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9a8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x46e6ed
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9a8]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
call fcn.00402eb0
inc esi
dec ebx
jne 0x46e6d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9a8]
mov edx, dword [eax]
call dword [edx + 0x40]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e804
lea eax, [ebp - 0x24]
call fcn.00403b38
lea eax, [ebp - 0x20]
call fcn.00405244
ret