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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
mov ebx, ecx
push esi
lea eax, [ebx + 0x10404]
lea edx, [ebp - 0x110]
push edi
mov dword [ebp - 4], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4849a3
movzx edx, byte [ebp + 8]
mov eax, edx
imul eax, eax, 0x104
lea esi, [eax + ebx + 4]
mov byte [ebp - 0x318], cl
mov edi, 0x4bb448
mov ecx, 1
xor eax, eax
mov dword [ebp + 8], esi
repe cmpsb byte [esi], byte es:[edi]
je 0x484a2c
mov eax, dword [ebp + 8]
mov esi, eax
jmp 0x4849e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4849e0
lea edi, [ebp - 0x110]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4849f0
mov ecx, eax
imul edx, edx, 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx + 0x10518]
and ecx, 3
sub eax, edx
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
lea edx, [eax - 4]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x484a20
jmp 0x484a38
mov eax, dword [ebx + 0x10624]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov edi, dword [ebx + 0x10510]
lea edx, [ebp - 0x110]
inc edi
push edx
mov dword [ebx + 0x10510], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x484a6b
mov eax, 2
lea esp, [ebp - 0x324]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebx + 0x1062c]
mov edx, dword [eax]
lea edi, [ebx + 0x10618]
push edi
lea ecx, [ebp - 0x318]
push ecx
push ecx
push eax
call dword [edx + 0x38]
mov esi, eax
test esi, esi
jl 0x484be3
mov edi, dword [edi]
mov edx, dword [edi]
lea eax, [ebp - 4]
push eax
push 0x4bdea8
push edi
call dword [edx + 0x2c]
mov esi, eax
test esi, esi
jl 0x484be3
mov eax, dword [ebx + 0x10624]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
jl 0x484be3
mov eax, dword [ebx + 0x1062c]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], 0
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov esi, eax
test esi, esi
jl 0x484be3
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push 1
xor esi, esi
push eax
mov dword [ebp - 8], esi
call dword [edx + 0x10]
test eax, eax
jne 0x484b28
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push eax
inc esi
call dword [ecx + 0x10]
test eax, eax
je 0x484b15
mov dword [ebp - 8], esi
lea eax, [esi*4]
add eax, 3
and eax, 0xfffffffc
call fcn.004aa3e0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edi, esp
push eax
call dword [edx + 0x14]
mov esi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0
push esi
push 1
push eax
call dword [ecx + 0xc]
add esi, 4
test eax, eax
je 0x484b47
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x484b6e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp + 8], esi
mov eax, dword [ebp - 8]
test eax, eax
jle 0x484bbb
mov edx, dword [edi + esi*4]
mov eax, dword [ebx + 0x1062c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [edi + esi*4]
cmp eax, dword [ebx + 0x1061c]
je 0x484b9f
mov ecx, dword [ebx + 0x1062c]
mov edx, dword [ecx]
push 0
push eax
push ecx
call dword [edx + 0xc]
mov eax, dword [edi + esi*4]
test eax, eax
je 0x484bb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + esi*4], 0
mov eax, dword [ebp - 8]
inc esi
cmp esi, eax
jl 0x484b75
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x1062c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x30]
mov edx, dword [ebx + 0x10618]
mov esi, eax
mov dword [ebx + 0x1061c], edx
mov dword [ebx + 0x10618], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x484bf7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x10618]
test eax, eax
je 0x484c11
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebx + 0x10618], 0
xor ecx, ecx
cmp esi, ecx
jl 0x484c45
mov eax, dword [ebx + 0x10620]
push ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov edx, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push 1
push ecx
push eax
call dword [edx + 0x38]
mov esi, eax
test esi, esi
jl 0x484c45
mov eax, dword [ebx + 0x10624]
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov eax, dword [ebx + 0x1061c]
test eax, eax
je 0x484c5f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x1061c], 0
mov eax, esi
lea esp, [ebp - 0x324]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4