Function at 0x405fb0
Capabilities:
Get geographical location
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41e3ff
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4290b8]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x240]
push 0x18
call fcn.0040bc50
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp + 0x238], edi
cmp eax, edi
je 0x406018
mov ecx, eax
call fcn.00405950
mov esi, eax
jmp 0x40601a
xor esi, esi
mov ebp, 1
push ebp
lea eax, [esp + 0x1b0]
push 0x41f7e0
push eax
mov dword [esp + 0x244], 0xffffffff
call fcn.00404240
add esp, 0xc
push ebx
push 0x80
lea ecx, [esp + 0xb4]
push ecx
push 0x41f30c
lea edx, [esp + 0x1bc]
push edx
push str.File
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406070
sub eax, edx
sar eax, 1
je 0x4061e7
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0xa8], eax
xor eax, eax
mov dword [esp + 0x68], edi
mov word [esp + 0x58], cx
mov dword [esp + 0x88], edi
mov word [esp + 0x78], dx
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], ax
mov word [esp + 0x70], cx
lea eax, [esp + 0xac]
mov dword [esp + 0x238], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4060e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x5c]
call fcn.00404e00
push 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.0040d27b
add esp, 0xc
movzx edi, ax
push 0x80
lea edx, [esp + 0xb0]
push edx
movzx eax, di
push 0x1001
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 0xac]
mov word [esp + 0x70], di
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406146
sub eax, ecx
sar eax, 1
push eax
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00404e00
lea edx, [esp + 0x54]
push edx
mov ecx, esi
call fcn.00405f10
lea ecx, [esp + 0x54]
mov dword [esp + 0x238], 0xffffffff
call fcn.00404ac0
inc ebp
push ebp
lea eax, [esp + 0x1b0]
push 0x41f7e0
push eax
call fcn.00404240
add esp, 0xc
push ebx
push 0x80
lea ecx, [esp + 0xb4]
push ecx
push 0x41f30c
lea edx, [esp + 0x1bc]
push edx
push str.File
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xac]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4061d0
sub eax, edx
xor edi, edi
sar eax, 1
jne 0x406085
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x406343
mov ebx, 8
lea esp, [esp]
mov ecx, edi
call fcn.00405200
test al, al
je 0x4062ff
push 0x80
lea ecx, [esp + 0xb0]
push ecx
push 0x1002
push edi
mov ecx, esi
call fcn.00405680
movzx edx, word [eax + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x41f7cc
push edi
mov ecx, esi
call fcn.00405680
add eax, 0x20
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405720
lea ecx, [esp + 0xb8]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x250], 2
call fcn.00405720
add esp, 0x18
mov ebp, eax
push edi
mov ecx, esi
mov byte [esp + 0x23c], 3
call fcn.00405680
push 0xffffffffffffffff
add eax, 0x3c
push 0
push ebp
mov ecx, eax
call fcn.00404c20
cmp dword [esp + 0x50], ebx
jb 0x4062b4
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040bc09
add esp, 4
xor ecx, ecx
mov ebp, 7
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
mov dword [esp + 0x238], 0xffffffff
cmp dword [esp + 0x34], ebx
jb 0x4062ea
mov edx, dword [esp + 0x20]
push edx
call fcn.0040bc09
add esp, 4
xor eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jmp 0x406323
push edi
mov ecx, esi
call fcn.00405680
mov ebp, eax
push edi
mov ecx, esi
add ebp, 0x20
call fcn.00405680
push 0xffffffffffffffff
add eax, 0x3c
push 0
push ebp
mov ecx, eax
call fcn.00404c20
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
cmp edi, ecx
jb 0x406210
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040b218
add esp, 0x228
ret