Function at 0x5073f0
Capabilities:
Get geographical location
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x866318
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004effb0
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp eax, edi
je 0x50743f
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x408f28
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], edi
cmp ecx, edi
jne 0x507476
mov eax, dword [esi + 0x114]
cmp eax, edi
je 0x507901
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push 0x408f28
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x507901
mov edx, dword [ecx]
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, dword [edx + 0xc]
call ecx
test eax, eax
jns 0x5074a8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], 0xffffffff
cmp eax, edi
je 0x507901
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x507901
mov eax, dword [esp + 0x44]
xor ecx, ecx
or esi, 0xffffffff
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], eax
cmp eax, edi
jle 0x5078e9
mov dword [esp + 0x24], edi
lea ebx, [ecx + 1]
mov eax, dword [esp + 0x18]
push edi
push edi
lea ebp, [esp + 0x28]
push ebp
lea ebp, [esp + 0x38]
push ebp
lea ebp, [esp + 0x40]
push ebp
lea ebp, [esp + 0x68]
push ebp
push edi
mov dword [esp + 0x3c], edi
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
js 0x5078d3
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x5078d3
push eax
lea ecx, [esp + 0x20]
call fcn.004a8f10
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x70], bl
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 2
call fcn.004b1130
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004a9b50
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x507571
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x507580
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x7c]
je 0x5075d8
lea eax, [ebp - 0x10]
mov byte [esp + 0x6c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5075aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5078d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x5078d3
cmp esi, 0xffffffff
je 0x5075fa
cmp esi, eax
je 0x5075fa
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
push edi
push edi
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
call fcn.007cff5d
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x507917
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x6c], 5
cmp dword [ebp - 0xc], edi
jl 0x50766a
push 0x40d550
push ebp
call fcn.0080292f
add esp, 8
cmp eax, edi
je 0x50766a
sub eax, ebp
sar eax, 1
js 0x50766a
push 0x8160
call fcn.007cfe78
cmp eax, edi
je 0x507828
push 0x8160
push eax
lea ecx, [esp + 0x1c]
call fcn.004a8d10
jmp 0x507828
cmp dword [esp + 0x30], edi
jne 0x50768d
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push 0x8159
push edx
call fcn.004b1ce0
mov esi, dword [esp + 0x20]
add esp, 0xc
jmp 0x5076d3
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x40
or eax, ecx
jge 0x5076ab
push 0x40
lea ecx, [esp + 0x18]
call fcn.004a8a90
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push 0x40
push esi
push 0x1001
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
dec eax
xor ecx, ecx
cmp eax, edi
setle cl
dec ecx
and eax, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004a8550
lea eax, [esi - 0x10]
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 6
call fcn.004b1130
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004a9b50
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50772e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
je 0x5077f9
test edi, edi
je 0x50775a
cmp dword [ebp - 0xc], 0
jl 0x50775a
push edi
push ebp
call fcn.0080292f
add esp, 8
test eax, eax
je 0x50775a
sub eax, ebp
sar eax, 1
jns 0x5077f9
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x507807
add eax, 0xfffffff0
push eax
call fcn.004a9b50
add eax, 0x10
mov dword [esp + 0x3c], eax
push 0x40d548
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x7c], 9
call fcn.004af3d0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x88], 0xa
call fcn.004ac680
push 0x40d544
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x94], 0xb
call fcn.004af3d0
add esp, 0x28
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 0xc
call fcn.004aa540
lea ecx, [esp + 0x48]
call fcn.004a8c20
lea ecx, [esp + 0x4c]
call fcn.004a8c20
lea ecx, [esp + 0x50]
call fcn.004a8c20
lea ecx, [esp + 0x38]
call fcn.004a8c20
jmp 0x507807
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.004aa540
lea eax, [edi - 0x10]
mov byte [esp + 0x6c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x507828
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [esp + 0x54], edi
je 0x507835
mov edi, 8
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x1c]
call fcn.004aa070
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
push esi
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
add dword [esp + 0x78], ebx
add dword [esp + 0x24], ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50788a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x6c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5078aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5078cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add ecx, ebx
xor edi, edi
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x58]
jl 0x5074c8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], 0xffffffff
cmp eax, edi
je 0x507901
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
push 0x80004005
call fcn.004a8210
int3