Function at 0x479480
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5df82e
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2a4]
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
lea eax, [esp + 0x29c]
push eax
mov dword [esp + 0x298], 0
call fcn.00454070
mov eax, dword [esp + 0x2a0]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4794f1
sub eax, edx
sar eax, 1
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp ebp, dword [esp + 0x2a0]
jb 0x479526
push 0x62d930
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.The_string_has_no_terminating_null_character_
call fcn.00578eca
mov esi, dword [esp + 0x2ac]
test esi, esi
jge 0x479533
mov esi, ebp
push edi
lea ecx, [esp + 0x2a0]
call fcn.00453f50
mov eax, dword [esp + 0x29c]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x479580
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [esp + 0x29c]
xor ecx, ecx
cmp eax, 2
sete cl
push edx
mov esi, ecx
call fcn.00579478
mov eax, esi
jmp 0x4796bb
mov edi, dword [esp + 0x2a8]
jmp 0x479590
cmp word [esp + 0x64], 0x2e
je 0x479686
lea eax, [esp + 0x29c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004752c0
mov edx, dword [esp + 0x18]
xor ecx, ecx
lea eax, [esp + 0x64]
mov word [edx + ebp*2], cx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x298], 1
call fcn.00453eb0
test byte [esp + 0x38], 0x10
mov ebp, dword [esp + 0x18]
je 0x479627
mov ecx, dword [esp + 0x28]
push esi
push edi
push ecx
sub esp, 8
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.004752c0
mov ecx, ebx
call fcn.00479480
test eax, eax
jne 0x479671
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, ebp
push ecx
call fcn.00579478
mov edx, dword [esp + 0x2a0]
push edx
call fcn.00579478
add esp, 8
xor eax, eax
jmp 0x4796be
lea eax, [ebp + esi*2]
push eax
lea ecx, [esp + 0x30]
call fcn.00454510
push edi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
mov byte [esp + 0x2a0], 2
call fcn.004792b0
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
sete bl
mov byte [esp + 0x298], 1
call fcn.00579478
add esp, 4
test bl, bl
jne 0x4796e8
mov ebx, dword [esp + 0x24]
push ebp
mov byte [esp + 0x298], 0
call fcn.00579478
mov ebp, dword [esp + 0x24]
add esp, 4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479590
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x29c]
push eax
call fcn.00579478
mov eax, 1
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.005792fc
add esp, 0x284
ret 0x14
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push ebp
call fcn.00579478
mov ecx, dword [esp + 0x2a0]
push ecx
call fcn.00579478
add esp, 8
xor eax, eax
jmp 0x4796be