Function at 0x402160
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x40219b
mov word [0x41f0dc], 0xdf2f
mov dword [esp - 0x18], ebx
mov dword [0x41f092], 0x132e0
mov byte [0x41f05d], 0x1c
mov byte [0x41f043], 0xe2
mov byte [0x41f109], 0xd2
mov byte [0x41f03b], 0x2d
mov dword [0x41f092], ecx
call fcn.00401018
mov byte [ebp - 0x81], 0
mov dword [0x41f019], eax
mov ebx, 0xa4
mov byte [0x41f0d7], 0x69
sub dword [0x41f01c], edi
mov eax, 0x4026f0
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ObjectCloseAuditAlarmW
test dh, dh
jne 0x40220e
mov dword [0x41f0a4], eax
mov ecx, dword [0x41f02d]
mov dword [0x41f0ac], edi
jmp 0x40221a
mov dword [0x41f09d], esi
mov dword [0x41f0d2], edx
mov dword [0x41f0b9], ecx
and dword [0x41f0ca], esi
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 1
jne 0x4021bb
mov dword [ebp - 0x14], 0x190d3
mov dword [ebp - 0x18], 0x158b2
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
test eax, eax
jne 0x402289
mov byte [0x41f0b0], 0xb2
cmp byte [0x41f0db], 0
jg 0x402271
mov byte [0x41f059], 0x9d
add dword [0x41f066], edx
add dword [0x41f07d], ebx
mov byte [0x41f0ea], 0x96
mov ecx, 0x113
mov dword [0x41f017], edi
mov dword [0x41f0a7], esi
mov dword [0x41f108], edx
mov dword [0x41f073], 0x163c9
mov dword [0x41f027], 0x12bbe
mov byte [ebp - 0x81], 0
mov eax, 0x402700
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ObjectCloseAuditAlarmW
mov byte [0x41f109], 0xd2
mov byte [0x41f03b], 0x2d
mov dword [0x41f092], ecx
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 1
jne 0x4022b0
mov dword [0x41f0a7], esi
mov dword [0x41f108], edx
mov dword [0x41f073], 0x163c9
mov dword [0x41f027], 0x12bbe
push ecx
call fcn.00401018
mov eax, 0x402708
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0xffffffff
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_ObjectCloseAuditAlarmW
test eax, eax
je 0x402376
xchg dword [0x41f0dd], edx
cmp bh, byte [0x41f014]
jg 0x40236e
mov dword [0x41f027], 0x105c7
mov esi, 0xc7
mov ecx, dword [0x41f070]
mov edi, dword [0x41f102]
mov dword [0x41f0d1], ebx
mov ebx, edx
mov dword [0x41f072], 0x116df
mov dword [0x41f0a1], edi
mov dword [0x41f077], eax
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x4023b7
mov byte [0x41f073], 0x37
mov dword [0x41f0d2], edi
mov esi, 0x125
mov dword [0x41f062], ecx
mov dword [0x41f092], edi
call fcn.00401f74
mov dword [ebp - 0x3c], 0x1dd20
mov eax, 0x402718
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0x1f62d
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetLocaleInfoA
mov dword [0x41f0bc], edx
cmp dl, byte [0x41f039]
jl 0x4023fb
mov dword [0x41f0a4], edi
mov dword [0x41f0c8], esi
mov dword [0x41f07e], edi
dec eax
mov byte [0x41f014], 0x8c
mov dword [0x41f054], esi
mov dword [ebp - 0x48], 0x1a02c
mov dword [ebp - 0x4c], 0x1b410
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.user32.dll_GetWindow
test eax, eax
jne 0x402453
mov dword [0x41f0d6], 0x14dbc
and dword [0x41f040], edi
mov dword [0x41f0b8], esi
mov word [0x41f05f], 0xdc9a
mov eax, 0x402720
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0xffffffff
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.advapi32.dll_ObjectCloseAuditAlarmW
test eax, eax
jne 0x40248e
mov dword [0x41f0a0], edx
add dword [0x41f0e1], edi
inc dword [0x41f03e]
xchg dword [0x41f0f8], eax
mov dword [esp - 4], esi
mov word [0x41f0c8], 0xb58f
add dword [0x41f0b8], ecx
mov dword [0x41f0e1], esi
test ah, ah
je 0x4024cd
sub dword [0x41f03f], eax
dec ebx
mov word [0x41f085], 0xc148
mov dword [0x41f022], eax
dec dword [0x41f094]
mov dword [0x41f0d8], edi
mov dword [0x41f02c], ebx
add edi, 0x2b
mov eax, 0x402738
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.advapi32.dll_ObjectCloseAuditAlarmW
test eax, eax
jne 0x402533
and ecx, 0xe7
cmp word [0x41f0a0], 0
jge 0x40251e
mov ebx, 0x151
mov dword [0x41f098], ecx
mov word [0x41f04d], 0x185e
and dword [0x41f061], edi
mov dword [0x41f01a], eax
mov dword [0x41f0c4], 0x128c0
mov dword [0x41f0d8], edx
test esi, esi
jne 0x40255f
mov byte [0x41f056], 0xe
sub eax, 0x6a
and dword [0x41f03c], esi
mov dword [0x41f035], eax
jmp 0x402567
mov ecx, esi
mov dword [0x41f0fd], edi
mov dword [0x41f0bf], ecx
mov byte [ebp - 0x81], 0
mov dword [0x41f0cf], 0x1796c
mov dword [0x41f089], eax
mov dword [0x41f101], ecx
mov eax, 0x402760
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.advapi32.dll_ObjectCloseAuditAlarmW
test eax, eax
je 0x4025ec
mov dword [0x41f0f6], edx
cmp ecx, 0x1c
jge 0x4025d2
mov edi, dword [0x41f05c]
mov dword [0x41f0e2], 0x12275
mov dword [0x41f0af], esi
xchg dword [esp - 0x12], ebx
mov word [0x41f07c], 0xcb2c
mov byte [0x41f08e], 0x5d
mov dword [0x41f04c], edx
call fcn.004017fc
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 2
jne 0x402574
mov byte [ebp - 0x81], 0
mov dword [ebp - 0x74], 0x14273
mov dword [ebp - 0x78], 0x189d9
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.user32.dll_GetWindow
test eax, eax
jne 0x402641
mov byte [0x41f034], 0xdf
mov dword [0x41f07a], 0x17a24
mov dword [0x41f0e9], ebx
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 1
jne 0x40260b
mov byte [ebp - 0x81], 0
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_SetThreadLocale
mov byte [0x41f109], 0xd2
mov byte [0x41f03b], 0x2d
mov dword [0x41f092], ecx
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 3
jne 0x402657
mov byte [ebp - 0x81], 0
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x4026b6
mov dword [0x41f0d2], edi
lea edx, [0x41f0da]
and dword [edx + 4], ebx
mov dword [0x41f06f], 0x128d3
mov dword [0x41f0f5], ebx
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 2
jne 0x40268a
xchg dword [0x41f0b4], ecx
mov word [0x41f08e], 0xb3f9
mov dword [0x41f017], esi
add dword [0x41f0bd], ebx
mov dword [0x41f011], edx
push ebx
call fcn.00401018
mov esp, ebp
pop ebp
ret