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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c4b5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4b4070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 4
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x4053f8
mov eax, dword [ebx]
jmp 0x4053fa
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp + 0x68]
lea eax, [ebp + 0x54]
mov edi, dword [ebp + 0x54]
cmp esi, 8
mov dword [ebp - 0x70], 1
mov ecx, str.auto
cmovae eax, edi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405446
test dx, dx
je 0x405442
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405446
add eax, 4
add ecx, 4
test dx, dx
jne 0x405420
xor eax, eax
jmp 0x40544b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4055c3
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
push 0x20
lea eax, [ebp - 0x34]
push eax
push 0x59
push edi
call esi
push 0x20
lea eax, [ebp - 0x54]
push eax
push 0x5a
push edi
call esi
cmp word [ebp - 0x34], 0
jne 0x405482
xor ecx, ecx
jmp 0x40549f
lea ecx, [ebp - 0x34]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405490
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x54]
call fcn.00402790
lea eax, [ebp + 0x24]
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x6c]
call fcn.004038b0
add esp, 4
mov esi, eax
cmp ebx, esi
je 0x4054ff
cmp dword [ebx + 0x14], 8
jb 0x4054d8
mov eax, dword [ebx + 0x14]
mov ecx, ebx
inc eax
push eax
push dword [ebx]
call fcn.00402d30
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x4054f0
mov eax, dword [ebx]
jmp 0x4054f2
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.00403c20
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x405518
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.00402d30
push 1
push 0x4a4480
mov ecx, ebx
call fcn.00405f80
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x54]
mov ecx, ebx
push eax
call fcn.00403990
push 1
push 0x4a4484
mov ecx, ebx
call fcn.00405f80
cmp word [ebp - 0x54], 0
jne 0x40554e
xor ecx, ecx
jmp 0x405563
lea ecx, [ebp - 0x54]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405554
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.00405f80
push 1
push 0x4a4488
mov ecx, ebx
call fcn.00405f80
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x3c]
mov ecx, ebx
push eax
call fcn.00403990
cmp dword [ebx + 0x14], 8
jb 0x405596
mov eax, dword [ebx]
jmp 0x405598
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40561e
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x4055ba
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
jmp 0x40561e
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
jmp 0x40561e
cmp esi, 8
lea eax, [ebp + 0x54]
mov esi, dword [ebp - 0x78]
cmovae eax, edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 0x24]
call fcn.00405c50
mov eax, dword [ebp - 0x7c]
cmp eax, dword [esi + 0x28]
jne 0x4055f3
push 0
push 0x4a4298
jmp 0x405616
mov edx, dword [eax + 0xc]
cmp word [edx], 0
jne 0x405600
xor ecx, ecx
jmp 0x405614
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405605
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x54]
call fcn.00402790
cmp dword [ebx + 0x10], 0
ja 0x4056ce
lea eax, [ebp + 0x24]
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x6c]
call fcn.004038b0
add esp, 4
mov esi, eax
cmp ebx, esi
je 0x40567b
cmp dword [ebx + 0x14], 8
jb 0x405654
mov eax, dword [ebx + 0x14]
mov ecx, ebx
inc eax
push eax
push dword [ebx]
call fcn.00402d30
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x40566c
mov eax, dword [ebx]
jmp 0x40566e
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.00403c20
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x405694
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.00402d30
push 1
push 0x4a4480
mov ecx, ebx
call fcn.00405f80
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x54]
mov ecx, ebx
push eax
call fcn.00403990
push 1
push 0x4a4488
mov ecx, ebx
call fcn.00405f80
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x3c]
mov ecx, ebx
push eax
call fcn.00403990
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x4056e3
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00402d30
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
cmp eax, 8
jb 0x40570c
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.00402d30
xor eax, eax
mov dword [ebp + 0x38], 7
mov word [ebp + 0x24], ax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x34], 0
cmp eax, 8
jb 0x405735
inc eax
lea ecx, [ebp + 0x3c]
push eax
push dword [ebp + 0x3c]
call fcn.00402d30
mov ecx, dword [ebp + 0x68]
xor eax, eax
mov dword [ebp + 0x50], 7
mov dword [ebp + 0x4c], 0
mov word [ebp + 0x3c], ax
cmp ecx, 8
jb 0x40575e
inc ecx
push ecx
push dword [ebp + 0x54]
lea ecx, [ebp + 0x54]
call fcn.00402d30
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 - 0x14]
xor ecx, ebp
call fcn.0043b44e
mov esp, ebp
pop ebp
ret 0x64