Function at 0x412860
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4536c0
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x46f7c0]
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 eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 8]
push 0x45cbec
xor ecx, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x13c], bl
mov word [ebp - 0x13b], cx
mov dword [ebp - 0x15c], 3
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x412d50
push esi
call fcn.00415430
add esp, 4
test eax, eax
je 0x412d50
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x13c]
push eax
push 0x45cbf0
push ebx
call fcn.0040f6a0
add esp, 0x10
test eax, eax
je 0x41291e
mov edx, dword [ebp - 0x138]
lea ecx, [ebp - 0x13c]
push ecx
push edx
call edi
lea eax, [ebx + 1]
jmp 0x412d52
push 7
mov edi, 0xf
push str.jucheck
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00405990
mov eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x412956
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.00405990
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.0041f200
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0041f2c0
mov ecx, eax
call fcn.0041e7b0
push 2
mov ecx, eax
call fcn.0041e7d0
push 1
mov ecx, eax
call fcn.0041e7c0
push 1
lea edx, [ebp - 0x174]
push edx
mov ecx, eax
call fcn.004203b0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 5
call fcn.0041f030
mov edi, 0x10
cmp dword [ebp - 0x38], edi
jb 0x4129d9
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0043a71e
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], edi
jb 0x4129fc
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0043a71e
add esp, 4
push ebx
push 0x45c6e2
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
call fcn.00405990
push 7
push str.COUNTRY
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov byte [ebp - 0xa0], bl
call fcn.00405990
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 9
call fcn.0041fd00
cmp dword [ebp - 0x8c], edi
jb 0x412a82
mov edx, dword [ebp - 0xa0]
push edx
call fcn.0043a71e
add esp, 4
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov byte [ebp - 0xa0], bl
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x70], edi
jb 0x412aac
mov eax, dword [ebp - 0x84]
push eax
call fcn.0043a71e
add esp, 4
cmp dword [ebp - 0x58], 2
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
je 0x412b86
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.0041b6e0
add esp, 8
push eax
lea eax, [ebp - 0x4c]
push str.Invalid_country_value_:_
push eax
mov byte [ebp - 4], 0xd
call fcn.00406c30
add esp, 0xc
push 0x45cc14
push eax
lea ecx, [ebp - 0xe4]
push ecx
mov byte [ebp - 4], 0xe
call fcn.00406c80
add esp, 0xc
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], edi
jb 0x412b14
mov edx, dword [eax]
mov dword [ebp - 0x138], edx
jmp 0x412b1a
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x158]
call fcn.0043afd2
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x158]
push edx
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x14c], 0x45cc18
mov dword [ebp - 0x148], 0x45cc08
mov dword [ebp - 0x144], 0x43
call fcn.00411e40
add esp, 0xc
push 0x468980
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0043be1d
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x140], 1
cmp dword [ebp - 0x54], edi
jae 0x412b9b
lea eax, [ebp - 0x68]
mov esi, dword [ebp - 0x138]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push 0x45cca4
push ebx
call fcn.0040f4a0
add esp, 0xc
cmp eax, ebx
je 0x412c53
call fcn.00417630
push 1
mov ecx, eax
call fcn.00417640
cmp al, bl
je 0x412c53
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x4c]
push str.Save_Country_Code
push eax
call fcn.00412790
add esp, 0xc
push str._after_GetCountry__
push eax
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebp - 4], 0x11
call fcn.00406c80
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00417630
push esi
push 0x45ccd4
push 0x49
push 0x45cce0
push 1
mov ecx, eax
call fcn.00419b70
cmp dword [ebp - 0x1c], edi
jb 0x412c35
mov edx, dword [ebp - 0x30]
push edx
call fcn.0043a71e
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], edi
jb 0x412c53
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0043a71e
add esp, 4
cmp dword [ebp - 0x54], edi
jb 0x412c64
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0043a71e
add esp, 4
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], 0x14
cmp byte [ebp - 0x160], bl
je 0x412c92
mov edx, dword [ebp - 0x164]
push edx
mov byte [ebp - 0x160], bl
call fcn.0041e760
add esp, 4
mov byte [ebp - 4], 0x13
cmp byte [ebp - 0x168], bl
je 0x412cb3
mov eax, dword [ebp - 0x16c]
push eax
mov byte [ebp - 0x168], bl
call fcn.0041e760
add esp, 4
mov byte [ebp - 4], bl
cmp byte [ebp - 0x170], bl
je 0x412cd3
mov ecx, dword [ebp - 0x174]
push ecx
mov byte [ebp - 0x170], bl
call fcn.0041e760
add esp, 4
mov eax, dword [ebp - 0x140]
jmp 0x412d52
xor eax, eax
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.0043b8c7
mov esp, ebp
pop ebp
ret