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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fed29
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x542488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xbc], eax
mov al, byte [ebp + 0x14]
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0x58]
mov ebx, dword [ebp - 0xcc]
push ebx
push 0
push 3
push eax
call fcn.00495390
push 0x50f004
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.0048d710
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.0048d690
add esp, 0x28
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x497986
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49797c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497e39
push edx
push ecx
call fcn.004b5e6a
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4979d8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4979ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497e39
push edx
push ecx
call fcn.004b5e6a
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0048d1e0
push ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
push edi
call fcn.00494fc0
add esp, 0xc
test al, al
je 0x497b0c
push 0x50f004
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0048d710
push dword [ebp - 0xbc]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0048d690
add esp, 0x18
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.00402400
lea ecx, [ebp - 0x58]
call fcn.00490ec0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x58]
cmp eax, 0xffffffff
je 0x497b03
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402400
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x497ae2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497ad8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497e3e
push edx
push ecx
call fcn.004b5e6a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402400
jmp 0x497c29
mov byte [ebp - 4], 5
call fcn.00402400
lea ecx, [ebp - 0xa0]
call fcn.0048d1e0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 9
call fcn.0048d1e0
push ebx
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xa0]
push eax
push edi
call fcn.00497e50
add esp, 0x10
test al, al
jne 0x497c47
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x88]
call fcn.00402400
lea ecx, [ebp - 0xa0]
call fcn.00402400
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x497bdf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497bd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497e34
push edx
push ecx
call fcn.004b5e6a
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
cmp edx, 8
jb 0x497c29
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497c1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497e34
push edx
push ecx
call fcn.004b5e6a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5e78
mov esp, ebp
pop ebp
ret
push 0x50db68
lea ecx, [ebp - 0x58]
call fcn.0048ce90
push 1
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x88]
call fcn.004908a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
call fcn.00402400
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0xc4]
jne 0x497ca7
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00405390
lea ecx, [ebp - 0xc8]
call fcn.00402460
jmp 0x497b8f
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push edi
push eax
call fcn.00496df0
mov edi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x497d56
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x497d0c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497d02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497e43
push edx
push ecx
call fcn.004b5e6a
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0xb8]
call fcn.00402400
lea ecx, [ebp - 0x28]
call fcn.0048fb40
mov ecx, esi
test al, al
je 0x497d88
lea eax, [ebp - 0x40]
push eax
call fcn.00405390
lea ecx, [ebp - 0xc8]
call fcn.00402460
jmp 0x497b8f
lea eax, [ebp - 0x28]
push eax
call fcn.00405390
lea ecx, [ebp - 0xc8]
call fcn.00402460
lea ecx, [ebp - 0x88]
call fcn.00402400
lea ecx, [ebp - 0xa0]
call fcn.00402400
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x497de8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497dde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497e34
push edx
push ecx
call fcn.004b5e6a
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x497c29
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497c1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x497c1f
call fcn.004c19b9
call fcn.004c19b9
call fcn.004c19b9
call fcn.004c19b9
int3