Function at 0x2d7c38
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x2c]
push edi
xor edi, edi
sub eax, edi
mov dword [ebp - 4], edi
je 0x2d7c85
dec eax
je 0x2d7c79
dec eax
je 0x2d7c6d
dec eax
lea eax, [ebp - 4]
push eax
push edi
je 0x2d7c66
push 0xbbc
jmp 0x2d7c8f
push 0xbbb
jmp 0x2d7c8f
lea eax, [ebp - 4]
push eax
push edi
push 0xbba
jmp 0x2d7c8f
lea eax, [ebp - 4]
push eax
push edi
push 0xbb9
jmp 0x2d7c8f
lea eax, [ebp - 4]
push eax
push edi
push 0xbb8
push dword [ebp + 8]
call fcn.002d8eb3
mov ax, word [esi + 0x2c]
mov ecx, dword [ebp + 0x10]
mov word [ecx + 0x1a], ax
lea eax, [ebp + 8]
push eax
push dword [esi + 0x38]
mov dword [ebp + 0xc], edi
call dword [0x2d11f0]
pop ecx
push eax
call fcn.002d785d
test eax, eax
jl 0x2d7d03
movzx eax, word [ebp + 8]
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 2
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x2d7d01
lea eax, [ebx + ebx]
push eax
call dword [0x2d12a8]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x2d7d01
push ebx
push eax
movzx eax, word [ebp + 8]
push 2
push eax
call edi
test eax, eax
jne 0x2d7d01
push dword [ebp + 0xc]
call dword [fcn.002d12c0]
and dword [ebp + 0xc], 0
xor edi, edi
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x2d7d20
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x2d7d0d
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
jmp 0x2d7d23
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x2d7d29
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x2d7d40
sub eax, ecx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x2d7d6c
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x2d7d5a
sub eax, edx
sar eax, 1
mov ecx, eax
jmp 0x2d7d6e
xor ecx, ecx
mov eax, dword [esi + 0x44]
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x2d7d74
sub eax, edi
sar eax, 1
add eax, ecx
mov ecx, dword [ebp + 8]
add eax, ebx
add eax, dword [ebp - 8]
lea edi, [eax + ecx + 5]
mov eax, dword [esi + 0x48]
test eax, eax
jbe 0x2d7dbc
mov ecx, dword [esi + 0x50]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x2d7da2
sub eax, ebx
sar eax, 1
add ecx, 4
dec dword [ebp + 8]
lea edi, [edi + eax + 1]
jne 0x2d7d9d
lea eax, [edi + edi]
push eax
call dword [0x2d12a8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x10], eax
test eax, eax
je 0x2d7e4d
mov edx, dword [ebp + 0xc]
mov ecx, VerQueryValueW
test edx, edx
jne 0x2d7dde
mov edx, ecx
cmp dword [ebp - 4], 0
je 0x2d7de7
mov ecx, dword [ebp - 4]
push dword [esi + 0x44]
push edx
push dword [esi + 0x3c]
push dword [esi + 0x34]
push ecx
push 0x2d7e88
push edi
push eax
call fcn.002d7986
xor ebx, ebx
add esp, 0x20
cmp dword [esi + 0x48], ebx
jbe 0x2d7e39
mov eax, dword [ebp + 0x10]
push 0x2d7e84
push edi
push dword [eax + 0x10]
call fcn.002d792c
test eax, eax
jl 0x2d7e3d
mov eax, dword [esi + 0x50]
push dword [eax + ebx*4]
mov eax, dword [ebp + 0x10]
push edi
push dword [eax + 0x10]
call fcn.002d792c
test eax, eax
jl 0x2d7e3d
inc ebx
cmp ebx, dword [esi + 0x48]
jb 0x2d7e08
test eax, eax
jge 0x2d7e4d
mov edi, dword [ebp + 0x10]
push dword [edi + 0x10]
call dword [fcn.002d12c0]
and dword [edi + 0x10], 0
mov ebx, dword [ebp + 0x10]
lea eax, [ebx + 8]
cmp dword [eax], 0
jne 0x2d7e62
push eax
push dword [esi + 0x44]
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
push dword [ebp + 0xc]
mov edi, dword [fcn.002d12c0]
call edi
push dword [ebp - 4]
call edi
push dword [esi + 0x44]
call fcn.002d3122
pop edi
pop esi
mov dword [ebx + 0x1c], eax
pop ebx
leave
ret 0xc