Function at 0x438e4b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b8f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
or eax, 0xffffffff
push 0xaa
xor esi, esi
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xf8]
push esi
push eax
call fcn.0044f154
add esp, 0xc
test edi, edi
jne 0x438e9d
mov eax, 0x8ff00003
jmp 0x439147
mov ecx, 0xc00
cmp dword [edi + 8], ecx
jne 0x438ebe
push 0x55
lea eax, [ebp - 0xf8]
push eax
push ecx
call fcn.0043f288
lea eax, [ebp - 0xf8]
jmp 0x438ec1
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x108], eax
push ebx
push 4
mov word [ebp - 0x34], cx
mov word [ebp - 0x4c], cx
mov word [ebp - 0x14], cx
mov word [ebp - 0x20], cx
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0x14]
push ecx
push 5
lea ecx, [ebp - 0x20]
push ecx
push 4
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0043b07e
test eax, eax
setne bl
xor eax, eax
cmp ax, word [ebp - 0xc]
jne 0x438f2a
push 4
lea eax, [ebp - 0xc]
push eax
push 0x59
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x438f2a
xor eax, eax
movzx ebx, bl
cmp ax, word [ebp - 0xc]
push 1
pop eax
cmovne ebx, eax
xor eax, eax
cmp ax, word [ebp - 0x14]
jne 0x438f59
push 4
lea eax, [ebp - 0x14]
push eax
push 0x5a
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x438f59
xor ecx, ecx
movzx ebx, bl
cmp cx, word [ebp - 0x14]
push 1
pop ecx
cmovne ebx, ecx
test bl, bl
je 0x43912c
lea ecx, [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x438f67
sub ecx, edx
sar ecx, 1
je 0x438f8e
push esi
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00439d9f
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xc]
cmp eax, dword [edi]
lea edx, [ecx + 2]
push 0xffffffffffffffff
pop ebx
cmove eax, ebx
mov dword [ebp - 0xfc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x438fa8
sub ecx, edx
sar ecx, 1
je 0x439022
lea edx, [ebp - 0x20]
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x438fbf
sub edx, ebx
sar edx, 1
je 0x43901f
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push 9
push eax
call fcn.0046b3ec
xor eax, eax
inc eax
push eax
push 0x482fc4
lea eax, [ebp - 0x34]
push 9
push eax
call fcn.0046d301
lea ecx, [ebp - 0x20]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x438ffd
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x34]
push 9
push eax
call fcn.0046d301
add esp, 0x10
or ebx, 0xffffffff
lea ecx, [ebp - 0x34]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x439028
sub ecx, edx
sar ecx, 1
je 0x43904f
push esi
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00439d9f
mov edx, dword [ebp - 0x100]
lea ecx, [ebp - 0x14]
cmp edx, dword [edi]
cmove edx, ebx
lea ebx, [ecx + 2]
mov dword [ebp - 0x100], edx
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x439066
sub ecx, ebx
sar ecx, 1
je 0x4390cd
push 7
push 0x482fc8
lea eax, [ebp - 0x4c]
push 0xb
push eax
call fcn.0046b3ec
lea ecx, [ebp - 0x14]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x439092
sub ecx, edx
lea eax, [ebp - 0x14]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x4c]
push 0xb
push eax
call fcn.0046d301
add esp, 0x10
lea eax, [ebp - 0x104]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00439d9f
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x104]
cmp eax, dword [edi]
push 0xffffffffffffffff
pop ebx
cmove eax, ebx
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0xfc], ebx
jne 0x4390f1
cmp eax, ebx
jne 0x4390f1
cmp edx, ebx
je 0x439125
mov eax, dword [edi + 0x10]
cmp edx, ebx
mov ecx, dword [ebp - 0xfc]
cmovne ecx, edx
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0x104]
mov dword [ecx + 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [eax], ebx
mov eax, dword [edi + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [edi + 0x10]
mov dword [eax + 8], ebx
mov eax, dword [edi + 0x10]
mov dword [eax + 0xc], ebx
or dword [edi + 0x20], 0x1f8
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0x10]
push dword [edx + ecx*4]
call fcn.0043dbb6
test al, al
mov ecx, 0x80004005
pop ebx
cmovne esi, ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044d772
mov esp, ebp
pop ebp
ret 8