Function at 0x4051c0
Capabilities:
Get common file path
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5eda
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x874
mov eax, dword [0x57aa54]
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 - 0x10], esp
mov dword [ebp - 0x854], ecx
lea eax, [ebp - 0x818]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4be154
lea ecx, [ebp - 0x830]
call fcn.004038f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x830]
push ecx
mov ecx, dword [ebp - 0x854]
add ecx, 0x7c
call fcn.00401240
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x829], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x830]
call fcn.00403970
movzx eax, byte [ebp - 0x829]
test eax, eax
je 0x4052c3
push 0x4be180
lea ecx, [ebp - 0x834]
call fcn.004038f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x834]
push ecx
mov ecx, dword [ebp - 0x854]
add ecx, 0x7c
call fcn.00401930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.00403970
push 0
push 0
mov ecx, dword [ebp - 0x854]
add ecx, 0xc0
call fcn.0040ca60
push eax
call fcn.00481baa
xor al, al
jmp 0x405713
mov ecx, dword [ebp - 0x854]
call fcn.00405ca0
movzx edx, al
test edx, edx
jne 0x4052dc
xor al, al
jmp 0x405713
mov eax, dword [ebp - 0x854]
movzx ecx, byte [eax + 0x125]
test ecx, ecx
je 0x40531b
mov edx, dword [ebp - 0x854]
movzx eax, byte [edx + 0x125]
test eax, eax
je 0x40530f
mov ecx, dword [ebp - 0x854]
movzx edx, byte [ecx + 0x126]
test edx, edx
jne 0x40531b
mov dword [ebp - 0x858], 0
jmp 0x405325
mov dword [ebp - 0x858], 1
mov al, byte [ebp - 0x858]
mov byte [ebp - 0x819], al
movzx ecx, byte [ebp - 0x819]
test ecx, ecx
je 0x4054ba
mov edx, dword [ebp - 0x854]
cmp dword [edx + 0x9c], 0
je 0x4054ba
mov dword [ebp - 4], 2
mov dword [ebp - 0x820], 0
push 0
push 0
push 0x1001
mov eax, dword [ebp - 0x854]
mov ecx, dword [eax + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x820], 0
je 0x4054a4
push 2
mov edx, dword [ebp - 0x854]
mov eax, dword [edx + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x4054a4
mov dword [ebp - 0x828], 0
mov eax, dword [ebp - 0x820]
shl eax, 1
call fcn.0049ce80
mov dword [ebp - 0x85c], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x85c]
mov dword [ebp - 0x828], ecx
mov edx, dword [ebp - 0x820]
push edx
mov eax, dword [ebp - 0x828]
push eax
push 0x1001
mov ecx, dword [ebp - 0x854]
mov edx, dword [ecx + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [ebp - 0x824]
call fcn.004038b0
mov byte [ebp - 4], 3
push 0x98
lea eax, [ebp - 0x838]
push eax
mov ecx, 0x57bf98
call fcn.0040c710
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x864], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x828]
push edx
mov ecx, dword [ebp - 0x864]
call fcn.0040ca60
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004044a0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x838]
call fcn.00403970
push 0
push 0
lea ecx, [ebp - 0x824]
call fcn.0040ca60
push eax
call fcn.00481baa
mov byte [ebp - 0x839], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x824]
call fcn.00403970
mov al, byte [ebp - 0x839]
jmp 0x405713
jmp 0x4054b3
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x854]
call fcn.00405ab0
movzx ecx, al
test ecx, ecx
jne 0x4054d3
xor al, al
jmp 0x405713
push 0x4be1ac
lea ecx, [ebp - 0x840]
call fcn.004038f0
mov dword [ebp - 0x868], eax
mov edx, dword [ebp - 0x868]
mov dword [ebp - 0x86c], edx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x844]
push ecx
mov ecx, dword [ebp - 0x854]
add ecx, 0xc4
call fcn.004160b0
mov dword [ebp - 0x870], eax
mov edx, dword [ebp - 0x870]
mov dword [ebp - 0x874], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x874]
push eax
mov ecx, dword [ebp - 0x854]
add ecx, 0x154
call fcn.00403990
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x844]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00403970
mov ecx, dword [ebp - 0x854]
call fcn.00406150
mov ecx, dword [ebp - 0x854]
call fcn.00406250
mov ecx, dword [ebp - 0x854]
call fcn.00405740
movzx ecx, al
test ecx, ecx
jne 0x405599
xor al, al
jmp 0x405713
mov ecx, dword [ebp - 0x854]
add ecx, 0xc4
call fcn.004150f0
mov ecx, dword [ebp - 0x854]
add ecx, 0xc4
call fcn.0040a030
movzx edx, al
test edx, edx
jne 0x40562a
push 0x22
lea eax, [ebp - 0x848]
push eax
mov ecx, dword [ebp - 0x854]
call fcn.00409c20
mov dword [ebp - 0x878], eax
mov ecx, dword [ebp - 0x878]
mov dword [ebp - 0x87c], ecx
mov dword [ebp - 4], 8
push 0
push 0
mov ecx, dword [ebp - 0x87c]
call fcn.0040ca60
push eax
call fcn.00481baa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.00403970
push 2
mov ecx, dword [ebp - 0x854]
call fcn.00481d52
xor al, al
jmp 0x405713
mov ecx, dword [ebp - 0x854]
add ecx, 0xc4
call fcn.0040ff80
movzx edx, al
test edx, edx
je 0x4056cb
push 0x99
lea eax, [ebp - 0x850]
push eax
mov ecx, 0x57bf98
call fcn.0040c710
mov dword [ebp - 0x880], eax
mov ecx, dword [ebp - 0x880]
mov dword [ebp - 0x884], ecx
mov dword [ebp - 4], 9
push 0
push 5
mov ecx, dword [ebp - 0x884]
call fcn.0040ca60
push eax
call fcn.00481baa
xor edx, edx
cmp eax, 2
sete dl
mov byte [ebp - 0x849], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00403970
movzx eax, byte [ebp - 0x849]
test eax, eax
je 0x4056c6
push 2
mov ecx, dword [ebp - 0x854]
call fcn.00481d52
xor al, al
jmp 0x405713
jmp 0x40562a
push 1
mov ecx, dword [ebp - 0x854]
add ecx, 0x3b0
call fcn.0040aa90
mov ecx, dword [ebp - 0x854]
movzx edx, byte [ecx + 0x125]
test edx, edx
je 0x405701
mov eax, dword [ebp - 0x854]
mov dword [eax + 0x128], 7
jmp 0x405711
mov ecx, dword [ebp - 0x854]
mov dword [ecx + 0x128], 0
mov al, 1
lea esp, [ebp - 0x894]
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.0049c63c
mov esp, ebp
pop ebp
ret