Function at 0x4da635
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
cmp eax, 0x111
push ebx
push ebp
push esi
push edi
mov ebp, ecx
ja 0x4da570
je 0x4da540
cmp eax, 0x18
je 0x4da50e
cmp eax, 0x110
jne 0x4da7fc
mov eax, dword [esp + 0x48]
push eax
call fcn.004da880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x10
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4da7ed
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
je 0x4da7ed
mov ecx, dword [ebp + 4]
call fcn.004d6b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x10
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x4da7fc
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
push eax
push ecx
push 0x111
push edx
mov ecx, ebp
call fcn.004db600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x10
cmp eax, 0x114
jb 0x4da7fc
cmp eax, 0x115
jbe 0x4da5bf
cmp eax, 0x402
jne 0x4da7fc
mov eax, dword [ebp + 4]
mov dword [eax + 0x250], 1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x244]
test eax, eax
je case.0x4da5fc.2561
call fcn.004d6b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x10
mov edi, dword [esp + 0x54]
push 0xfffffffffffffff4
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x468
push edi
mov esi, eax
call ebx
add esi, 0xfffff609
and eax, 0xffff
cmp esi, 0x3d
ja case.0x4da5fc.2561
xor ecx, ecx
mov cl, byte [esi + 0x4da834]
jmp dword [ecx*4 + 0x4da808]
mov dword [esp + 0x50], 0xa00
jmp 0x4da651
mov dword [esp + 0x50], 0xa03
jmp 0x4da651
mov dword [esp + 0x50], 0xa01
jmp 0x4da651
mov dword [esp + 0x50], 0xa02
jmp 0x4da651
mov dword [esp + 0x50], 0xa05
jmp 0x4da651
mov dword [esp + 0x50], 0xa06
jmp 0x4da651
mov dword [esp + 0x50], 0xa0a
jmp 0x4da651
mov dword [esp + 0x50], 0xa0c
mov dx, word [0x5579f4]
lea esi, [eax + eax*4]
lea ecx, [esp + 0x10]
xor eax, eax
push 0xa
push ecx
mov dword [esp + 0x1a], eax
push 0xe
push 0x400
mov word [esp + 0x20], dx
shl esi, 1
mov dword [esp + 0x26], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, esi
mov ecx, 0x64
cdq
idiv ecx
mov eax, 0x51eb851f
lea ecx, [esp + 0x1c]
push edx
lea edx, [esp + 0x14]
push edx
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push str._0d_s_02d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x66666667
add esp, 0x14
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
and edx, 0xffff
push edx
push 0
push 0x467
push edi
call ebx
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x30]
push 0x14
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4da70f
lea ecx, [esp + 0x1c]
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0xffffffffffffffff
push 0
push 0xb1
push edi
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
mov ebp, dword [ebp + 4]
mov eax, dword [ebp + 0x244]
test eax, eax
je case.0x4da5fc.2561
mov ecx, ebp
call fcn.004d6b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x10
mov eax, dword [esp + 0x48]
push 0
push 0
push 0xa3d
push eax
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push 0
push 0
push 0x400
push edi
mov esi, eax
call ebx
mov edi, eax
cmp esi, edi
je 0x4da794
mov ecx, dword [esp + 0x48]
push 0
push edi
push 0xa3d
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov edx, dword [ebp + 4]
mov word [edx + 0x7c], di
mov ecx, dword [ebp + 4]
call fcn.004d6b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x10
mov eax, dword [esp + 0x48]
push 0
push 0
push 0xa3e
push eax
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push 0
push 0
push 0x400
push edi
mov esi, eax
call ebx
mov edi, eax
cmp esi, edi
je 0x4da7ed
mov ecx, dword [esp + 0x48]
push 0
push edi
push 0xa3e
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov edx, dword [ebp + 4]
mov word [edx + 0x7e], di
mov ecx, dword [ebp + 4]
call fcn.004d6b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret 0x10