Function at 0x4806b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x838
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x5928c0], ebp
call edi
mov esi, dword [esp + 0x84c]
mov dword [0x5928c8], eax
cmp esi, ebp
je 0x480f86
cmp word [esi], bp
je 0x480f86
cmp dword [esp + 0x850], ebp
je 0x480f86
mov eax, dword [esp + 0x854]
cmp eax, ebp
je 0x480f86
mov eax, dword [eax]
cmp eax, ebp
je 0x480f86
cmp dword [0x5928cc], ebp
jne 0x48073d
mov dword [0x5928c0], 2
mov dword [0x5928c4], 0x1928
call edi
pop edi
pop esi
mov dword [0x5928c8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x838
ret
push ebp
push 0x60
push 1
push 7
push 0x80
push 0x120089
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], eax
call fcn.004bb100
mov ebx, eax
add esp, 0x1c
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4807a1
call edi
cmp eax, 2
je 0x480e9d
push ebp
push 0x60
push 1
push 7
push 0x80
push 0x120089
push esi
call fcn.004bb100
add esp, 0x1c
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x480ead
mov ebx, eax
push ebp
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x469]
mov byte [esp + 0x468], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebx, 0xffffffff
stosb byte es:[edi], al
je 0x480866
lea eax, [esp + 0x468]
test eax, eax
je 0x480866
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x480842
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x468]
xor esi, esi
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
lea edx, [esp + 0x474]
push 0x3e0
push edx
push ebx
mov dword [esp + 0x3c], esi
call fcn.004ba790
add esp, 0x18
test eax, eax
jne 0x48087c
mov dword [0x5928c0], 0xd
mov dword [0x5928c4], 0x1490
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
mov dword [0x5928c0], 0xf
mov dword [0x5928c4], 0x1955
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
jmp 0x480c63
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x1483
jmp 0x480837
lea eax, [esp + 0x468]
push eax
call fcn.00488510
mov edx, eax
add esp, 4
cmp edx, esi
je 0x480ecd
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0xe1]
mov byte [esp + 0xe0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, 3
stosb byte es:[edi], al
jne 0x480c8b
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x468]
push ecx
push edx
call fcn.00487bb0
add esp, 8
test eax, eax
je 0x480ef1
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c0], esi
call ebp
mov dword [0x5928c8], eax
lea eax, [esp + 0xe0]
test eax, eax
jne 0x480933
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x36f7
call ebp
mov dword [0x5928c8], eax
mov dword [0x5928c0], 0x1f
mov dword [0x5928c4], 0x196d
call ebp
mov dword [0x5928c8], eax
jmp 0x480c63
cmp dword [0x5928cc], esi
jne 0x480951
mov dword [0x5928c0], 2
mov dword [0x5928c4], 0x36fd
jmp 0x48090c
cmp dword [0x592e7c], esi
jne 0x4809a8
mov eax, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2d4]
mov ecx, dword [0x5928dc]
cmp eax, 0x2710
ja 0x480986
cmp ecx, 0x2710
ja 0x4809a8
cmp ecx, eax
je 0x4809a8
cmp eax, esi
jne 0x480996
jmp 0x4809a8
cmp eax, ecx
jne 0x480996
cmp dword [0x5928e4], esi
ja 0x4809a8
cmp edx, esi
je 0x4809a8
push edx
push eax
call fcn.0048e0d0
add esp, 8
cmp eax, esi
je 0x480913
mov ecx, dword [esp + 0x104]
push ecx
call fcn.004bded0
mov esi, eax
xor edx, edx
add esp, 4
cmp esi, edx
mov dword [esp + 0x4c], esi
je 0x480f15
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x48]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0xa4]
push 0x40
push eax
lea edx, [esp + 0xec]
push ecx
push edx
call fcn.0048eac0
add esp, 0x14
test eax, eax
je 0x480f35
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x480f55
mov edi, dword [esp + 0x120]
cmp eax, 1
mov dword [esp + 0x1c], edi
jne 0x480a42
mov eax, dword [esp + 0x124]
mov dword [esp + 0x1c], eax
mov edi, eax
push edi
call fcn.00520a0a
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov ebx, eax
push edi
call dword [edx + 0xc]
push eax
mov dword [esp + 0x3c], eax
call fcn.00520a0a
mov ecx, dword [esp + 0x18]
add esp, 4
xor esi, esi
mov ebp, eax
mov eax, dword [esp + 0x118]
push esi
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
jmp 0x480a8f
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x11c]
mov esi, dword [esp + 0x120]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jne 0x480ab5
mov esi, dword [esp + 0x124]
mov dword [esp + 0x20], 1
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x38]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x58]
and ecx, 3
push edx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x11c]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ebx
push ecx
call fcn.004ba790
add esp, 0x18
test eax, eax
je 0x480bc0
mov edx, dword [ebx]
add esi, 0xfffffffc
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.004bb340
add esp, 0xc
test eax, eax
je 0x480bd6
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x44]
push ebp
push esi
push edi
push edx
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0x50], 0
call dword [eax + 0x14]
test eax, eax
je 0x480bec
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jbe 0x480c15
mov edi, dword [esp + 0x850]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x850]
add edi, eax
add esi, eax
sub edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edi
test eax, eax
mov dword [esp + 0x850], esi
mov dword [esp + 0x28], edx
je 0x480a87
jmp 0x480c40
mov dword [0x5928c0], 0xd
mov dword [0x5928c4], 0x19b3
jmp 0x480c00
mov dword [0x5928c0], 0x1c
mov dword [0x5928c4], 0x19bc
jmp 0x480c00
mov dword [0x5928c0], 0x12
mov dword [0x5928c4], 0x19c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
mov dword [esp + 0x10], 1
jmp 0x480c40
mov edi, dword [esp + 0x850]
mov ecx, edx
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
push ebx
call fcn.00520a33
push ebp
call fcn.00520a33
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x480c5f
mov dword [esp + 0x2c], 1
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x854]
mov ecx, dword [esp + 0x18]
cmp ebx, 0xffffffff
mov dword [edx], ecx
je 0x480c7c
push ebx
call dword [0x593fb8]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x838
ret
cmp edx, 1
je 0x480c95
cmp edx, 2
jne 0x480c63
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, 1
stosb byte es:[edi], al
jne 0x480cb2
push edx
jmp 0x480cda
mov edi, 0x575258
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004bded0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x480f62
push 0
push 0
push 0x100
push ebx
call ebp
push 0x10000
call fcn.00520a0a
push 0x10000
mov ebx, eax
call fcn.00520a0a
add esp, 8
xor esi, esi
mov ebp, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
jmp 0x480d23
xor esi, esi
mov ecx, 0x4000
xor eax, eax
mov edi, ebx
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x4000
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push esi
push edx
push 0x10000
push ebx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], 0x100
call fcn.004ba790
add esp, 0x18
test eax, eax
je 0x480e17
mov eax, dword [esp + 0x24]
cmp eax, 0x10000
jae 0x480d88
cmp eax, esi
mov dword [esp + 0x20], 1
je 0x480e83
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x60]
mov dword [esp + 0x30], esi
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push ecx
push 0x10000
push ebp
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
lea eax, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x480e2d
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jbe 0x480e56
mov edi, dword [esp + 0x850]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x850]
add edi, eax
add esi, eax
sub edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edi
test eax, eax
mov dword [esp + 0x850], esi
mov dword [esp + 0x28], edx
je 0x480d21
jmp 0x480e81
mov dword [0x5928c0], 0xd
mov dword [0x5928c4], 0x1a11
jmp 0x480e41
mov dword [0x5928c0], 0x12
mov dword [0x5928c4], 0x1a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
mov dword [esp + 0x1c], 1
jmp 0x480e83
mov edi, dword [esp + 0x850]
mov ecx, edx
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor esi, esi
push ebx
call fcn.00520a33
push ebp
call fcn.00520a33
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, esi
jmp 0x480c55
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x838
ret
mov dword [0x5928c0], 3
mov dword [0x5928c4], 0x194a
call edi
mov dword [0x5928c8], eax
jmp 0x480c5f
mov dword [0x5928c0], 0x22
mov dword [0x5928c4], 0x195c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
jmp 0x480c63
mov dword [0x5928c0], 0x14
mov dword [0x5928c4], 0x1966
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
jmp 0x480c63
mov dword [0x5928c0], 0xc
mov dword [0x5928c4], 0x1977
call ebp
mov dword [0x5928c8], eax
jmp 0x480c63
mov dword [0x5928c0], 0xb
mov dword [0x5928c4], 0x1980
call ebp
mov dword [0x5928c8], eax
jmp 0x480c63
mov dword [esp + 0x2c], 1
jmp 0x480c63
mov dword [0x5928c0], 0xc
mov dword [0x5928c4], 0x19f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
jmp 0x480c63
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x1922
call edi
pop edi
pop esi
mov dword [0x5928c8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x838
ret