Function at 0x419390
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041e980
cmp al, 1
jne 0x419652
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x184
push dword [esi + 0x1ec]
call ebx
push 0x6b
call fcn.004202c9
test eax, eax
je 0x4193e9
push 0x6b
push eax
lea ecx, [esi + 0x118]
call fcn.004053d0
test eax, eax
jne 0x419418
push 0x55
lea eax, [ebp - 0xb8]
push eax
push 0x1001
push str.en_us
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x419418
lea eax, [ebp - 0xb8]
push eax
lea ecx, [esi + 0x118]
call fcn.00405880
push dword [esi + 0x118]
push 0xffffffffffffffff
push 0x181
push dword [esi + 0x1ec]
call ebx
push 0x409
push 0
push 0x19a
push dword [esi + 0x1ec]
call ebx
mov eax, dword [esi + 0x244]
xor ecx, ecx
sub eax, dword [esi + 0x240]
sar eax, 3
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xd0], 1
test eax, eax
je 0x419581
lea ebx, [ebx]
mov eax, dword [esi + 0x240]
push ecx
shl ecx, 3
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xc8], esp
mov edi, dword [ecx + eax]
mov ecx, dword [edi - 0x10]
sub edi, 0x10
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x4194ae
cmp ecx, dword [edi]
jne 0x4194ae
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4194ef
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0xcc], edx
test edx, edx
je 0x41977c
mov ecx, dword [edi + 4]
lea eax, [edi + 0x10]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.0054b0a9
mov edi, dword [ebp - 0xcc]
add esp, 0x10
mov ecx, dword [ebp - 0xc8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, esi
call fcn.00419920
cmp al, 1
jne 0x41955d
mov eax, dword [esi + 0x240]
mov ecx, dword [ebp - 0xc0]
mov edi, dword [ebp - 0xd0]
push dword [ecx + eax + 4]
push edi
push 0x181
push dword [esi + 0x1ec]
call ebx
mov eax, dword [esi + 0x240]
mov ecx, dword [ebp - 0xc0]
push 0
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov ecx, eax
call fcn.0041ea00
push eax
push edi
push 0x19a
push dword [esi + 0x1ec]
call ebx
inc edi
mov dword [ebp - 0xd0], edi
mov eax, dword [esi + 0x244]
mov ecx, dword [ebp - 0xc4]
sub eax, dword [esi + 0x240]
inc ecx
sar eax, 3
mov dword [ebp - 0xc4], ecx
cmp ecx, eax
jb 0x419470
push 0x5adca8
push dword [esi + 0x258]
call fcn.0054bc86
add esp, 8
test eax, eax
jne 0x419663
mov byte [ebp - 0xb9], al
call fcn.0041e600
xor edi, edi
mov dword [ebp - 0xc4], eax
push edi
push edi
push 0x18b
push dword [esi + 0x1ec]
call ebx
test eax, eax
jle 0x419607
push 0
push edi
push 0x199
push dword [esi + 0x1ec]
call ebx
cmp dword [ebp - 0xc4], eax
jne 0x4195f1
push 0
push edi
push 0x186
push dword [esi + 0x1ec]
call ebx
mov byte [ebp - 0xb9], 1
push 0
push 0
push 0x18b
push dword [esi + 0x1ec]
inc edi
call ebx
cmp edi, eax
jl 0x4195c2
cmp dword [ebp - 0xc4], 0xffffffff
je 0x419619
cmp byte [ebp - 0xb9], 0
jne 0x41962a
push 0
push 0
push 0x186
push dword [esi + 0x1ec]
call ebx
mov edi, dword [sym.imp.USER32.dll_RedrawWindow]
push 0x105
push 0
push 0
push dword [esi + 0x178]
call edi
push 0x105
push 0
push 0
push dword [esi + 0x1ec]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054a22c
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x186
push dword [esi + 0x1ec]
call ebx
mov eax, dword [esi + 0x244]
xor ecx, ecx
sub eax, dword [esi + 0x240]
sar eax, 3
mov dword [ebp - 0xc0], ecx
test eax, eax
je 0x41962a
nop
mov edx, dword [esi + 0x258]
test edx, edx
je 0x419781
mov eax, dword [esi + 0x240]
push edx
push dword [eax + ecx*8]
call fcn.0054bc86
add esp, 8
test eax, eax
jne 0x419753
mov edi, dword [esi + 0x258]
sub edi, 0x10
push ecx
mov dword [ebp - 0xcc], esp
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x4196e9
cmp ecx, dword [edi]
jne 0x4196e9
mov eax, 1
lock xadd dword [edx], eax
jmp 0x419726
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0xc8], edx
test edx, edx
je 0x41977c
mov ecx, dword [edi + 4]
lea eax, [edi + 0x10]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.0054b0a9
mov edi, dword [ebp - 0xc8]
add esp, 0x10
mov ecx, dword [ebp - 0xcc]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, esi
call fcn.00419920
cmp al, 1
jne 0x419753
mov eax, dword [ebp - 0xc0]
push 0
inc eax
push eax
push 0x186
push dword [esi + 0x1ec]
call ebx
mov eax, dword [esi + 0x244]
mov ecx, dword [ebp - 0xc0]
sub eax, dword [esi + 0x240]
inc ecx
sar eax, 3
mov dword [ebp - 0xc0], ecx
cmp ecx, eax
jb 0x419690
jmp 0x41962a
call fcn.00405610
push 0x80004005
call fcn.00405730
int3