Function at 0x4f6340
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x534014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push edi
push 8
push eax
mov edi, ecx
mov dword [ebp - 0x394], esi
push 0
mov dword [ebp - 0x39c], edi
call fcn.004f75a0
test al, al
je 0x4f690b
lea eax, [ebp - 0x20]
cmp dword [eax], 0x72613c21
jne 0x4f690b
cmp dword [eax + 4], 0xa3e6863
jne 0x4f690b
test dword [edi + 0x20], 0x800000
mov ebx, 8
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x38c], 0
je 0x4f63d7
push 0
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3a0], eax
jmp 0x4f63f3
push dword [edi + 0xc]
call fcn.00525ce6
mov dword [ebp - 0x3a0], eax
add esp, 4
and eax, edx
cmp eax, 0xffffffff
je 0x4f690b
mov ecx, esi
mov dword [ebp - 0x384], 0x4083a8
mov dword [ebp - 0x37c], 0
mov dword [ebp - 0x380], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f6416
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push esi
mov dword [ebp - 0x388], eax
call fcn.004593c0
mov ecx, dword [ebp - 0x384]
mov esi, eax
add esp, 8
mov eax, dword [ecx]
cmp eax, 0x4683d0
jne 0x4f6499
cmp esi, 0xfffffff8
jae 0x4f6495
mov edx, dword [ebp - 0x380]
lea ecx, [esi + 3]
mov eax, 0x100
and ecx, 0xfffffffc
sub eax, edx
cmp eax, ecx
jb 0x4f647f
lea eax, [ebp - 0x378]
add eax, edx
add edx, ecx
mov dword [ebp - 0x380], edx
mov ecx, eax
mov dword [ebp - 0x390], eax
jmp 0x4f64aa
push ecx
lea ecx, [ebp - 0x384]
call fcn.00456880
mov dword [ebp - 0x390], eax
mov ecx, eax
jmp 0x4f64aa
xor ecx, ecx
jmp 0x4f64a4
push esi
lea ecx, [ebp - 0x384]
call eax
mov ecx, eax
mov dword [ebp - 0x390], ecx
mov eax, dword [ebp - 0x388]
cmp esi, eax
jne 0x4f64ca
push esi
push ecx
push dword [ebp - 0x394]
call fcn.00459b20
add esp, 0xc
test eax, eax
je 0x4f6506
jmp 0x4f64fd
mov dword [ebp - 0x388], ecx
test ecx, ecx
jne 0x4f64dc
mov dword [ebp - 0x390], ecx
jmp 0x4f64fd
push esi
push ecx
push eax
push dword [ebp - 0x394]
call fcn.004597f0
add esp, 0x10
neg eax
sbb eax, eax
and eax, dword [ebp - 0x388]
mov dword [ebp - 0x390], eax
cmp dword [ebp - 0x390], 0
jne 0x4f655a
mov ecx, dword [edi + 0x80]
push 0
push 0
push 0x8007000e
mov ecx, dword [ecx + 0x17c]
call fcn.004b7630
xor bl, bl
mov esi, dword [ebp - 0x37c]
mov dword [ebp - 0x384], 0x4083a8
test esi, esi
je 0x4f6545
push esi
mov esi, dword [esi]
call fcn.00426f44
add esp, 4
test esi, esi
jne 0x4f6536
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
xor eax, eax
mov dword [ebp - 0x388], esi
mov dword [ebp - 0x394], eax
lea ebx, [ebx]
add ebx, dword [ebp - 0x398]
test bl, 1
je 0x4f657c
inc ebx
cmp ebx, dword [ebp - 0x3a0]
jae 0x4f68f3
push 0x3c
lea eax, [ebp - 0x278]
mov ecx, edi
push eax
push ebx
call fcn.004f75a0
test al, al
je 0x4f6520
mov esi, dword [ebp - 0x3a4]
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x248]
inc esi
push 0x418b48
push eax
mov dword [ebp - 0x3a4], esi
call fcn.004f7e10
add esp, 0xc
cmp eax, 1
jne 0x4f6520
add ebx, 0x3c
cmp esi, eax
je 0x4f65da
cmp esi, 2
jne 0x4f6612
lea ecx, [ebp - 0x278]
mov edx, 0x418b4c
mov esi, 0xc
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4f660c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4f65f0
mov esi, dword [ebp - 0x388]
jmp 0x4f6570
mov esi, dword [ebp - 0x3a4]
cmp esi, 3
je 0x4f6620
cmp esi, 2
jne 0x4f6752
lea ecx, [ebp - 0x278]
mov edx, 0x418b60
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4f6752
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4f6630
mov ecx, dword [edi + 0x80]
lea eax, [ebp - 0x38c]
push eax
push dword [ebp + 0xc]
call fcn.004b7360
test al, al
je 0x4f6520
cmp dword [ebp - 0x38c], 0
mov esi, dword [ebp - 0x388]
jne 0x4f6570
push 0x4011f8
push dword [ebp - 0x398]
call fcn.00427398
mov esi, eax
add esp, 8
mov dword [ebp - 0x38c], esi
test esi, esi
je 0x4f6506
mov edi, dword [ebp - 0x398]
test edi, edi
je 0x4f672a
mov ecx, dword [ebp - 0x39c]
test dword [ecx + 0x20], 0x800000
je 0x4f66e9
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x18]
push edi
add eax, ebx
je 0x4f66cc
push eax
push esi
call fcn.0042fd00
add esp, 0xc
jmp 0x4f6724
push 0
push esi
call fcn.00427ec0
add esp, 0xc
call fcn.0043fd06
mov dword [eax], 0x16
call fcn.0043fc08
jmp 0x4f6724
mov eax, dword [ecx + 0x18]
push 0
add eax, ebx
push 0
push eax
push dword [ecx + 0xc]
call fcn.00447cc6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f6891
push edi
push esi
mov esi, dword [ebp - 0x39c]
push dword [esi + 0xc]
call fcn.004482a1
add esp, 0xc
cmp eax, edi
jne 0x4f6897
mov esi, dword [ebp - 0x38c]
mov edi, dword [ebp - 0x39c]
push esi
push dword [ebp + 0xc]
mov ecx, dword [edi + 0x80]
call fcn.004b8420
test al, al
je 0x4f6520
mov esi, dword [ebp - 0x388]
jmp 0x4f6570
push 0xffffffffffffffff
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x18]
push 0x11
push eax
call fcn.00442e36
add esp, 0x10
cmp byte [ebp - 0x18], 0x2f
jne 0x4f67c1
mov al, byte [ebp - 0x17]
cmp al, 0x20
je 0x4f67b4
cmp al, 0x2f
je 0x4f67b4
cmp dword [ebp - 0x38c], 0
je 0x4f6520
lea eax, [ebp - 0x18]
push 0x20
push eax
call fcn.00523af0
add esp, 8
test eax, eax
je 0x4f6520
mov byte [eax], 0
lea eax, [ebp - 0x17]
push eax
call fcn.0043f813
add esp, 4
add eax, dword [ebp - 0x38c]
jmp 0x4f67dd
lea eax, [ebp - 0x18]
push 0x20
push eax
call fcn.00523af0
jmp 0x4f67cc
lea eax, [ebp - 0x18]
push 0x2f
push eax
call fcn.005239b0
add esp, 8
test eax, eax
je 0x4f6520
mov byte [eax], 0
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x390]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f6803
test dl, dl
je 0x4f67ff
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f6803
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f67e3
xor eax, eax
jmp 0x4f6808
sbb eax, eax
or eax, 1
mov esi, dword [ebp - 0x388]
test eax, eax
jne 0x4f6879
inc esi
mov dword [ebp - 0x388], esi
cmp esi, 1
jne 0x4f6824
mov dword [ebp - 0x394], ebx
push 0x14
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
push ebx
call fcn.004f75a0
test al, al
je 0x4f6520
cmp word [ebp - 0x23c], 0
jne 0x4f6570
mov eax, 0xffff
cmp word [ebp - 0x23a], ax
jne 0x4f6570
cmp word [ebp - 0x238], 0
jne 0x4f6570
or dword [edi + 0x20], 0x20000
mov bl, 1
jmp 0x4f6522
test esi, esi
je 0x4f6570
mov eax, dword [ebp - 0x394]
mov bl, 1
mov dword [edi + 0x18], eax
jmp 0x4f6522
mov esi, dword [ebp - 0x39c]
mov eax, dword [esi + 0x80]
lea edx, [ebp - 0x3a0]
mov dword [ebp - 0x3a0], 0x104
push edx
lea edx, [ebp - 0x228]
mov ecx, dword [eax + 0x98]
push edx
mov eax, dword [ecx]
call dword [eax + 0x80]
test eax, eax
je 0x4f6520
call fcn.0043fcf3
mov eax, dword [eax]
test eax, eax
jle 0x4f68de
movzx eax, ax
or eax, 0x80070000
push 0
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [esi + 0x80]
push eax
jmp 0x4f6515
test esi, esi
je 0x4f6520
mov eax, dword [ebp - 0x394]
mov bl, 1
mov dword [edi + 0x18], eax
jmp 0x4f6522
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc