Function at 0x4c0460
Capabilities:
Check if file exists
Get file attributes
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e636f
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x51b08c]
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 dword [ebp - 0x74], ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov esi, dword [ebp + 0x68]
lea eax, [ebp + 0x54]
mov edi, dword [ebp + 0x54]
cmp esi, 8
mov dword [ebp - 0x6c], 1
mov ecx, str.auto
cmovae eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c04fd
test dx, dx
je 0x4c04f9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c04fd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c04d7
xor eax, eax
jmp 0x4c0502
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4c068f
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
push 0x20
lea eax, [ebp - 0x30]
push eax
push 0x59
push edi
call esi
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x5a
push edi
call esi
cmp word [ebp - 0x30], 0
jne 0x4c0539
xor ecx, ecx
jmp 0x4c054f
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0540
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x54]
call fcn.00403330
lea eax, [ebp + 0x24]
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x68]
call fcn.00403c80
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
cmp ebx, esi
je 0x4c05b2
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x4c058b
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.00403800
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x4c05a3
mov eax, dword [ebx]
jmp 0x4c05a5
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.00403bc0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x4c05cb
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00403800
push 1
xor eax, eax
mov dword [ebp - 0x54], 7
push 0x4fb7e8
mov ecx, ebx
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
call fcn.00404960
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x54]
mov ecx, ebx
push eax
call fcn.00403d40
push 1
push 0x4fb7ec
mov ecx, ebx
call fcn.00404960
cmp word [ebp - 0x50], 0
jne 0x4c0615
xor ecx, ecx
jmp 0x4c062f
lea ecx, [ebp - 0x50]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0620
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x50]
mov ecx, ebx
push eax
call fcn.00404960
push 1
push 0x4fb7f0
mov ecx, ebx
call fcn.00404960
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x3c]
mov ecx, ebx
push eax
call fcn.00403d40
cmp dword [ebx + 0x14], 8
jb 0x4c0662
mov eax, dword [ebx]
jmp 0x4c0664
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c06ea
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x4c0686
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
jmp 0x4c06ea
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
jmp 0x4c06ea
cmp esi, 8
lea eax, [ebp + 0x54]
mov esi, dword [ebp - 0x74]
cmovae eax, edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [esi + 0x24]
call fcn.00404520
mov eax, dword [ebp - 0x78]
cmp eax, dword [esi + 0x28]
jne 0x4c06bf
push 0
push 0x4fb700
jmp 0x4c06e2
mov edx, dword [eax + 0xc]
cmp word [edx], 0
jne 0x4c06cc
xor ecx, ecx
jmp 0x4c06e0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c06d1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x54]
call fcn.00403330
cmp dword [ebx + 0x10], 0
ja 0x4c07b1
lea eax, [ebp + 0x24]
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x68]
call fcn.00403c80
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
cmp ebx, esi
je 0x4c074a
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x4c0723
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.00403800
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x4c073b
mov eax, dword [ebx]
jmp 0x4c073d
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.00403bc0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x4c0763
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00403800
push 1
xor eax, eax
mov dword [ebp - 0x54], 7
push 0x4fb7e8
mov ecx, ebx
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
call fcn.00404960
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x54]
mov ecx, ebx
push eax
call fcn.00403d40
push 1
push 0x4fb7f0
mov ecx, ebx
call fcn.00404960
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x3c]
mov ecx, ebx
push eax
call fcn.00403d40
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x4c07ca
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00403800
xor eax, eax
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x38]
cmp eax, 8
jb 0x4c07f7
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.00403800
xor eax, eax
mov dword [ebp + 0x38], 7
mov dword [ebp + 0x34], 0
mov word [ebp + 0x24], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x50]
cmp eax, 8
jb 0x4c0824
inc eax
lea ecx, [ebp + 0x3c]
push eax
push dword [ebp + 0x3c]
call fcn.00403800
xor eax, eax
mov dword [ebp + 0x50], 7
mov dword [ebp + 0x4c], 0
mov word [ebp + 0x3c], ax
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x68]
cmp eax, 8
jb 0x4c0850
inc eax
lea ecx, [ebp + 0x54]
push eax
push dword [ebp + 0x54]
call fcn.00403800
xor eax, eax
mov dword [ebp + 0x68], 7
mov dword [ebp + 0x64], 0
mov word [ebp + 0x54], ax
mov eax, ebx
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.00499a52
mov esp, ebp
pop ebp
ret 0x64