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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0x46]
mov ebx, ecx
test al, al
mov dword [ebp - 4], edi
je 0x485b43
mov eax, dword [esi + 0x38]
mov ecx, dword [ebx + 0x3f8]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 8]
jmp 0x485b5d
mov edx, dword [esi + 0x38]
mov eax, dword [ebx + 0x3f8]
push 0x2f
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 8]
push ecx
call fcn.0056aa70
add esp, 8
cmp eax, edi
je 0x486273
mov edx, dword [0x65ca8c]
mov dword [ebp + 8], edx
mov cl, byte [esi + 0x46]
mov byte [ebp - 4], 1
test cl, cl
jne 0x485b7a
inc eax
push eax
lea eax, [ebp + 8]
push 0x638db4
push eax
call fcn.0057f8fb
add esp, 0xc
lea ecx, [ebp + 8]
push 0x5c
push 0x2f
call fcn.0057f2e1
push 0x2d
push 0x3a
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x2d
push 0x2a
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x2d
push 0x3f
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x2d
push 0x7c
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x2d
push 0x3c
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x2d
push 0x3e
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x2d
push 0x22
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x2d
push 0x25
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x5f
push 0x2f
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x5f
push 0x26
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x5f
push 0x21
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x5f
push 0x40
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x5f
push 0x27
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x5f
push 0x2c
lea ecx, [ebp + 8]
call fcn.0057f2e1
push 0x5f
push 0x3b
lea ecx, [ebp + 8]
call fcn.0057f2e1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x1c], di
mov ecx, dword [ebp + 8]
push edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x40], di
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402610
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp eax, edi
jne 0x485c7f
lea eax, [ebp - 0x40]
push eax
call fcn.0056aeae
mov esi, eax
mov eax, dword [ebx + 0x290]
add esp, 4
cmp eax, edi
jne 0x485c9a
lea eax, [ebx + 0x294]
push eax
call fcn.0056aeae
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, edi
mov ecx, edx
jne 0x485caf
lea ecx, [ebp - 0x40]
cmp word [ecx + esi*2 - 2], 0x5c
mov dword [ebp - 0x14], 0x660ffc
je 0x485cc5
mov dword [ebp - 0x14], 0x637028
mov ecx, dword [ebx + 0x290]
cmp ecx, edi
jne 0x485cd5
lea ecx, [ebx + 0x294]
cmp word [ecx + eax*2 - 2], 0x5c
mov edi, 0x660ffc
je 0x485ce7
mov edi, 0x637028
test edx, edx
mov esi, edx
jne 0x485cf0
lea esi, [ebp - 0x40]
mov eax, dword [ebx + 0x290]
test eax, eax
jne 0x485d00
lea eax, [ebx + 0x294]
mov edx, str._s_s_s_s
test edx, edx
je 0x485e6a
test eax, eax
je 0x485e6a
test edi, edi
je 0x485e6a
test esi, esi
je 0x485e6a
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x485e6a
push eax
lea ecx, [ebp - 0x50]
call fcn.004039c0
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.004039c0
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.004039c0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.004039c0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00401070
push str._s_s_s_s
lea ecx, [ebp - 0x38]
call fcn.004039f0
mov edi, dword [ebp - 0x50]
mov byte [ebp - 4], 8
test edi, edi
jne 0x485d8a
lea edi, [ebp - 0x4c]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00403a70
push eax
call fcn.0056aeae
add esp, 4
lea ecx, [ebp - 0x5c]
mov ebx, eax
call fcn.00403a70
push eax
call fcn.0056aeae
add esp, 4
lea ecx, [ebp - 0x68]
add ebx, eax
call fcn.00403a70
push eax
call fcn.0056aeae
mov dword [ebp - 0x14], ebx
mov ebx, eax
push edi
add ebx, esi
call fcn.0056aeae
mov ecx, dword [ebp - 0x14]
add ebx, ecx
add eax, ebx
lea edx, [eax + eax + 2]
push edx
call fcn.00582ecc
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x485e2e
lea ecx, [ebp - 0x2c]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x68]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x50]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x38]
call fcn.00403a70
push eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.0056aef4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0056aeae
add esp, 0x1c
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00401070
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x485e74
lea eax, [ebp - 0x1c]
push eax
call fcn.0056aeae
mov edi, eax
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
je 0x485e93
push eax
call fcn.0056aeae
add esp, 4
mov esi, eax
jmp 0x485e95
xor esi, esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x485ea7
push eax
call fcn.0056aeae
add esp, 4
jmp 0x485ea9
xor eax, eax
lea ebx, [eax + esi]
lea edx, [ebx + edi]
cmp edx, 0x104
jle 0x485fbe
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x485f00
mov esi, eax
push esi
call fcn.0056aeae
add esp, 4
cmp eax, 0x32
jbe 0x485f00
mov eax, dword [ebp + 0x18]
mov word [esi + 0x60], 0
test eax, eax
je 0x485eec
push eax
call fcn.0056aeae
add esp, 4
mov esi, eax
jmp 0x485eee
xor esi, esi
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0056aeae
mov ebx, eax
add esp, 4
add ebx, esi
jmp 0x485eac
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x485f48
push esi
call fcn.0056aeae
add esp, 4
cmp eax, 0xa
jbe 0x485f48
mov eax, dword [ebp + 0x14]
mov word [esi + 0x10], 0
test eax, eax
je 0x485f31
mov edx, eax
push edx
call fcn.0056aeae
add esp, 4
mov esi, eax
jmp 0x485f33
xor esi, esi
mov eax, dword [ebp + 0x18]
push eax
call fcn.0056aeae
mov ebx, eax
add esp, 4
add ebx, esi
jmp 0x485eac
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x485f52
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.0056b10e
xor esi, esi
add esp, 8
cmp eax, esi
je 0x485f8e
mov word [eax], si
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x485f70
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.0056b10e
add esp, 8
cmp eax, esi
je 0x485f85
mov word [eax + 2], si
jmp 0x485fa4
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x485f98
jmp 0x485f95
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x485f98
lea eax, [ebp - 0x1c]
mov word [eax + edi*2 - 4], si
mov word [eax + edi*2 - 2], 0x5c
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x485fae
lea eax, [ebp - 0x1c]
push eax
call fcn.0056aeae
add esp, 4
mov edi, eax
jmp 0x485eac
mov eax, dword [0x6614d0]
test eax, eax
je 0x485fdd
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x485fd1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x485ffa
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x485fe7
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00464fc0
add esp, 8
test eax, eax
jne 0x4862b3
mov eax, dword [ebp - 0x20]
xor edi, edi
cmp eax, edi
jne 0x486006
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
call fcn.00402e20
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp eax, edi
jne 0x486027
lea eax, [ebp - 0x28]
push eax
call fcn.0056aeae
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, edi
mov edx, ecx
jne 0x48603c
lea edx, [ebp - 0x28]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4860dd
mov edx, 0x637028
test edx, edx
je 0x4860dd
push edx
call fcn.0056aeae
add esp, 4
test eax, eax
je 0x4860da
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x486076
push eax
call fcn.0056aeae
add esp, 4
mov esi, eax
jmp 0x486078
xor esi, esi
push 0x637028
call fcn.0056aeae
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.00582ecc
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4860da
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x4860b5
push eax
push esi
call fcn.0056ae89
push 0x637028
push esi
call fcn.0056ae5f
add esp, 0x10
jmp 0x4860c3
push 0x637028
push esi
call fcn.0056ae89
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00401070
push esi
mov dword [ebp - 0x2c], esi
call fcn.0056aeae
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, edi
jne 0x4860e4
lea ecx, [ebp - 0x28]
add ecx, 6
push 0x5c
push ecx
call fcn.0056aecb
add esp, 8
mov esi, eax
cmp esi, edi
je 0x4862a7
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x486106
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
call fcn.00402e20
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xa
cmp ecx, edi
jne 0x486127
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x486131
lea eax, [ebp - 0x28]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x486145
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.00464fc0
add esp, 8
cmp eax, edi
jne 0x486286
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x486162
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.004651a0
add esp, 8
cmp eax, edi
jne 0x486286
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x65ca8c]
mov dword [ebp + 0x18], eax
push edi
lea ecx, [ebp + 0x10]
push edi
push ecx
push 0x400
push esi
push edi
push 0x1100
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp + 0x10]
mov eax, dword [0x662224]
push edx
lea ecx, [ebp + 0x18]
push eax
push ecx
call fcn.0057f8fb
mov edx, dword [ebp + 0x10]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x65ca8c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov bl, 0xc
cmp eax, edi
mov byte [ebp - 4], bl
jne 0x4861d8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00586bf3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
push esi
push ecx
push edx
lea eax, [ebp + 0x14]
push str._s__s_error__ld_n
push eax
mov byte [ebp - 4], 0xd
call fcn.0057f8fb
mov ecx, dword [0x6615e0]
add esp, 0x14
cmp ecx, edi
je 0x486214
mov edx, dword [ebp + 0x14]
push 1
push edx
call fcn.00478010
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00586b33
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xb
call fcn.00586b33
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xa
call fcn.00586b33
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
add esi, 2
push 0x5c
push esi
call fcn.0056aecb
add esp, 8
lea ecx, [ebp - 0x38]
mov esi, eax
mov byte [ebp - 4], 9
call fcn.00401070
jmp 0x4860f4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
jne 0x4862bf
lea eax, [ebp - 0x1c]
mov ecx, 0x6379c4
test ecx, ecx
je 0x486402
cmp eax, esi
je 0x486402
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x486402
mov ebx, dword [ebp + 0x18]
cmp ebx, esi
je 0x486402
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov word [ebp - 0x28], si
call fcn.00402e20
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x34], si
call fcn.00402e20
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.004039c0
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 0x10
mov ecx, edi
call fcn.00401070
push 0x6379c4
lea ecx, [ebp - 0x68]
call fcn.004039f0
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call fcn.00403a70
push eax
call fcn.0056aeae
add esp, 4
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.00403a70
push eax
call fcn.0056aeae
mov dword [ebp + 0x14], ebx
mov ebx, eax
add esp, 4
lea ecx, [ebp - 0x2c]
add ebx, esi
call fcn.00403a70
push eax
call fcn.0056aeae
mov edx, dword [ebp + 0x14]
add ebx, edx
add eax, ebx
lea eax, [eax + eax + 2]
push eax
call fcn.00582ecc
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x4863d0
lea ecx, [ebp - 0x5c]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x38]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x68]
call fcn.00403a70
mov ecx, dword [edi]
push eax
push ecx
call fcn.0056aef4
mov edx, dword [edi]
push edx
call fcn.0056aeae
add esp, 0x18
mov dword [edi + 8], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x10
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xe
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x486405
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
test eax, eax
jne 0x48640e
lea eax, [edi + 4]
push 0x63a120
push eax
call fcn.0056b327
add esp, 8
test eax, eax
je 0x48624f
mov eax, 0x63a120
test eax, eax
je 0x486405
mov ecx, 0x637028
test ecx, ecx
je 0x486405
push ecx
push eax
call fcn.0056afdb
add esp, 8
test eax, eax
je 0x486405
mov eax, dword [edi]
push 0x63a120
push eax
call fcn.0056b327
add esp, 8
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x48647c
push 0x63a120
inc ebx
call fcn.0056aeae
lea eax, [esi + eax*2]
push 0x63a120
push eax
call fcn.0056b327
add esp, 0xc
mov esi, eax
jmp 0x486458
test ebx, ebx
je 0x486405
mov edx, dword [edi]
lea ecx, [ebp - 0x50]
push edx
call fcn.004039c0
push 0x63a120
mov byte [ebp - 4], 0x12
call fcn.0056aeae
push 0x637028
mov esi, eax
call fcn.0056aeae
add esp, 8
cmp eax, esi
jbe 0x48650f
mov ecx, edi
call fcn.00401070
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x4864bd
lea esi, [ebp - 0x4c]
push 0x63a120
call fcn.0056aeae
push 0x637028
mov edi, eax
call fcn.0056aeae
mov edx, eax
push esi
sub edx, edi
imul edx, ebx
mov dword [ebp + 0x14], edx
call fcn.0056aeae
mov ecx, dword [ebp + 0x14]
add ecx, eax
lea edx, [ecx + ecx + 2]
push edx
call fcn.00582ecc
mov edi, dword [ebp + 0x10]
add esp, 0x10
test eax, eax
mov dword [edi], eax
jne 0x48650f
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x486405
mov ebx, dword [edi]
lea ecx, [ebp - 0x50]
call fcn.00403a70
push 0x63a120
push eax
mov dword [ebp + 0x18], eax
call fcn.0056b327
add esp, 8
test eax, eax
mov dword [ebp + 0x14], eax
je 0x4865a1
mov esi, dword [ebp + 0x18]
mov edi, ebx
sub eax, esi
push 0x637028
sar eax, 1
shl eax, 1
mov ecx, eax
add ebx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0056aeae
mov ecx, eax
mov esi, 0x637028
shl ecx, 1
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x637028
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0056aeae
push 0x63a120
lea ebx, [ebx + eax*2]
call fcn.0056aeae
mov ecx, dword [ebp + 0x14]
push 0x63a120
lea eax, [ecx + eax*2]
push eax
mov dword [ebp + 0x18], eax
call fcn.0056b327
add esp, 0x14
jmp 0x48652a
mov esi, dword [ebp + 0x18]
push esi
call fcn.0056aeae
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0056aeae
mov esi, dword [ebp + 0x10]
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [esi]
push ecx
call fcn.0056aeae
add esp, 0xc
lea ecx, [ebp - 0x50]
mov dword [esi + 8], eax
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x486402