Function at 0x4f7340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x1126
push ebx
call fcn.004f6fe4
add esp, 4
test al, al
jne 0x4f756f
xor eax, eax
lea esi, [ebp - 0x24]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov ecx, ebx
mov edx, esi
call fcn.004f7583
mov ebx, eax
mov ecx, esi
call fcn.004f761a
mov bh, al
mov ecx, esi
mov edx, esi
call fcn.004f766e
mov byte [ebp - 0x31], bh
test bh, bh
jne 0x4f73b0
test bl, bl
jne 0x4f73b0
mov dword [ebp - 0x38], 0x7b
test al, al
je 0x4f755b
cmp byte [ebp - 0x31], 0
jne 0x4f7434
lea ebx, [ebp - 0x20]
lea edi, [ebp - 0x30]
mov ecx, edi
push 0x578a60
call fcn.00401ce0
movzx eax, byte [ebx + 7]
test al, al
cmovs eax, dword [ebx]
mov edx, dword [ebx - 4]
cmovns edx, esi
mov ecx, edi
push eax
push edx
call fcn.00429860
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 7]
mov dword [ebp - 0x15], edx
mov dword [ebp - 0x18], ecx
mov dl, byte [eax + 0xb]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
cmp byte [ebx + 7], 0
jns 0x4f7412
push dword [ebp - 0x24]
mov byte [ebp - 0x3c], dl
call fcn.005327b0
mov dl, byte [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x15]
mov dword [ebx + 3], ecx
mov dword [ebx], eax
mov byte [ebp - 0x19], dl
cmp byte [ebp - 0x25], 0
jns 0x4f7434
push dword [ebp - 0x30]
call fcn.005327b0
add esp, 4
xor edi, edi
dec edi
mov dword [ebp - 0x3c], 0
lea ebx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ebx
push edi
push 0
push esi
call fcn.00429a70
cmp byte [ebp - 0x19], 0
jns 0x4f745f
push dword [ebp - 0x24]
call fcn.005327b0
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
movsd xmm0, qword [ebp - 0x30]
movsd qword [ebp - 0x24], xmm0
cmp byte [ebp - 0x19], 0
mov eax, esi
jns 0x4f747a
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f7491
bt eax, 0xa
jae 0x4f74fc
jmp 0x4f7546
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x4f74ec
cmp eax, 0x7b
je 0x4f74ec
test byte [ebp - 0x3c], 1
sete dl
or dl, byte [ebp - 0x31]
jne 0x4f74e6
movzx edx, byte [ebp - 0x19]
test dl, dl
cmovs edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
lea esi, [ebp - 0x24]
cmovns ebx, esi
test edx, edx
je 0x4f74e6
add edx, edx
test edx, edx
je 0x4f74e6
lea esi, [edx - 2]
cmp word [ebx + edx - 2], 0x5c
mov edx, esi
jne 0x4f74cb
mov ebx, 2
cmp esi, 6
je 0x4f74ec
mov dword [ebp - 0x38], eax
xor ebx, ebx
inc ebx
cmp ecx, 2
jb 0x4f74f6
cmp eax, 0x7b
jne 0x4f753a
lea esi, [ebp - 0x24]
lea ebx, [ebp - 0x18]
movzx eax, byte [ebp - 0x19]
test al, al
cmovs eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmovns ecx, esi
mov dl, 1
mov dword [ebp - 0x3c], edx
test eax, eax
je 0x4f752c
add eax, eax
test eax, eax
je 0x4f752c
lea edi, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edi
jne 0x4f7517
sar edi, 1
jmp 0x4f752f
xor edi, edi
dec edi
cmp edi, 2
ja 0x4f7441
jmp 0x4f7554
test ebx, ebx
jne 0x4f754f
lea esi, [ebp - 0x24]
lea ebx, [ebp - 0x18]
jmp 0x4f752f
mov dword [ebp - 0x38], 0
jmp 0x4f755b
cmp ebx, 2
jne 0x4f755b
mov dword [ebp - 0x38], 0x1126
cmp byte [ebp - 0x19], 0
jns 0x4f756c
push dword [ebp - 0x24]
call fcn.005327b0
add esp, 4
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret