Function at 0x102cd01
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x102cd1f
xor eax, eax
jmp 0x102d2e0
cmp dword [0x105431c], 0
mov edx, 0x20000000
je 0x102cd76
mov al, byte [0x1054320]
cmp al, 4
jae 0x102cd3a
test al, al
jne 0x102cd76
mov ecx, dword [0x105430c]
and ecx, edx
xor eax, eax
or eax, ecx
je 0x102cd76
mov ecx, dword [0x1054314]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x1054310]
jne 0x102cd76
cmp eax, ecx
jne 0x102cd76
push 0x1001940
push dword [0x10542f4]
push dword [0x10542f0]
call fcn.0101d19c
push ebx
lea ebx, [edi + 0x984]
push ebx
push esi
call fcn.010270b2
mov dword [ebp - 8], eax
test eax, eax
jl 0x102d285
jmp 0x102cdc2
movzx eax, word [esi]
cmp ax, 0x2d
je 0x102cda0
cmp ax, 0x2f
jne 0x102cdc0
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll_tolower]
pop ecx
cmp eax, 0x73
jne 0x102cdc0
movzx eax, word [esi + 4]
cmp ax, 0x20
je 0x102cdca
test ax, ax
je 0x102cdca
inc esi
inc esi
cmp word [esi], 0
jne 0x102cd91
jmp 0x102cdce
and dword [edi + 0x14], 0
mov ecx, dword [ebx]
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x102cdd5
sub eax, edx
sar eax, 1
lea edx, [edi + 0x98c]
push edx
inc eax
push eax
push ecx
call fcn.0102a5c0
mov eax, dword [ebx]
xor ebx, ebx
inc ebx
push ebx
mov ecx, edi
mov dword [edi + 0x988], eax
call fcn.01029e46
mov dword [ebp - 4], eax
test eax, eax
je 0x102d0f5
mov esi, 0x80000000
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x102ce2b
cmp cx, 0x2f
jne 0x102d1ac
movzx ecx, word [eax + 2]
test cx, cx
je 0x102d1ac
cmp word [eax + 4], 0
jne 0x102d1ac
push ecx
call dword [sym.imp.msvcrt.dll_towlower]
movzx eax, ax
cmp eax, 0x69
pop ecx
jg 0x102cf1d
je 0x102ceb0
sub eax, 0x3f
je 0x102ce74
sub eax, 0x22
je 0x102cea8
dec eax
dec eax
je 0x102ce88
sub eax, 3
je 0x102ce80
dec eax
dec eax
jne 0x102d133
mov dword [edi + 0x10], 4
jmp 0x102d0e2
mov dword [edi + 0x1c], ebx
jmp 0x102d0e2
cmp dword [edi + 0x10], 0
jne 0x102d123
mov dword [edi + 0x10], 5
mov dword [edi + 0x18], ebx
mov dword [ebp + 8], 0x1008fc8
jmp 0x102cf57
mov dword [edi + 0x20], ebx
jmp 0x102d0e2
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x102cec3
cmp dword [ebp - 0xc], eax
je 0x102d123
mov dword [ebp - 0xc], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
jmp 0x102cf08
push 0
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jg 0x102cef5
push dword [ebp + 8]
push 0x100707c
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x102d143
lea ecx, [edi + 0x990]
mov eax, dword [ecx + 4]
lea edx, [ebp + 8]
push edx
push eax
call fcn.0103c1a1
push 0
mov ecx, edi
call fcn.01029e46
mov dword [ebp + 8], eax
test eax, eax
jne 0x102cecb
jmp 0x102d0e2
sub eax, 0x70
je 0x102cfcf
dec eax
dec eax
je 0x102cfc7
dec eax
je 0x102d0e2
dec eax
dec eax
je 0x102cf73
dec eax
jne 0x102d133
cmp dword [edi + 0x10], eax
jne 0x102d123
mov dword [edi + 0x10], 3
mov dword [ebp + 8], 0x1008fb8
and dword [edi + 0x14], 0
lea ecx, [edi + 0x990]
mov eax, dword [ecx + 4]
lea edx, [ebp + 8]
push edx
push eax
call fcn.0103c1a1
jmp 0x102d0e2
cmp dword [edi + 0x10], 0
jne 0x102d123
mov dword [edi + 0x10], 2
mov dword [edi + 0xc], ebx
jmp 0x102cfb2
push 0
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x102d143
lea ecx, [edi + 0x990]
mov eax, dword [ecx + 4]
lea edx, [ebp + 8]
push edx
push eax
call fcn.0103c1a1
push 0
mov ecx, edi
call fcn.01029e46
mov dword [ebp + 8], eax
test eax, eax
jne 0x102cf89
jmp 0x102d0e2
mov dword [edi + 0x18], ebx
jmp 0x102d0e2
lea eax, [edi + 0x24]
cmp word [eax], 0
je 0x102cfe0
test eax, eax
jne 0x102d1a1
push 0
mov ecx, edi
call fcn.01029e46
mov dword [ebp + 8], eax
test eax, eax
je 0x102d209
push eax
mov ecx, edi
call fcn.0102cb69
test eax, eax
je 0x102d066
cmp dword [0x105431c], 0
je 0x102d055
mov al, byte [0x1054320]
cmp al, 2
jae 0x102d016
test al, al
jne 0x102d055
mov ecx, dword [0x105430c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x102d055
mov ecx, dword [0x1054314]
mov eax, ecx
xor edx, edx
and eax, esi
cmp edx, dword [0x1054310]
jne 0x102d055
cmp eax, ecx
jne 0x102d055
push dword [ebp + 8]
push 0x1001700
push dword [0x10542f4]
push dword [0x10542f0]
call fcn.0100c6f8
push dword [ebp + 8]
push 0x1008f18
call fcn.0101c26a
pop ecx
pop ecx
jmp 0x102d0e2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x102d0e2
mov eax, dword [edi + 0x10]
sub eax, 0
je 0x102d0d9
dec eax
je 0x102d0e2
cmp dword [0x105431c], 0
je 0x102d117
mov al, byte [0x1054320]
cmp al, 2
jae 0x102d098
test al, al
jne 0x102d117
mov ecx, dword [0x105430c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x102d117
mov edx, dword [0x1054314]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x1054310]
jne 0x102d117
cmp eax, edx
jne 0x102d117
push dword [ebp + 8]
push 0x1001700
push dword [0x10542f4]
push dword [0x10542f0]
call fcn.0100c6f8
jmp 0x102d117
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [ebp - 0xc], ebx
push ebx
mov ecx, edi
call fcn.01029e46
mov dword [ebp - 4], eax
test eax, eax
jne 0x102ce15
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x102d275
cmp dword [edi + 0x998], eax
jne 0x102d27e
push 0x1008e78
call fcn.0101c26a
pop ecx
mov dword [ebp - 8], 0x80070032
jmp 0x102d285
push dword [ebp - 4]
push 0x1008de0
call fcn.0101c26a
pop ecx
jmp 0x102d1ab
push dword [ebp - 4]
push 0x1008d70
call fcn.0101c26a
pop ecx
jmp 0x102d116
xor edx, edx
cmp dword [0x105431c], edx
je 0x102d197
mov al, byte [0x1054320]
cmp al, 2
jae 0x102d15a
test al, al
jne 0x102d197
mov ecx, dword [0x105430c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x102d197
mov ecx, dword [0x1054314]
mov eax, ecx
and eax, esi
cmp edx, dword [0x1054310]
jne 0x102d197
cmp eax, ecx
jne 0x102d197
push dword [ebp + 8]
push 0x10016f0
push dword [0x10542f4]
push dword [0x10542f0]
call fcn.0100c6f8
push dword [ebp + 8]
push 0x1008d18
jmp 0x102d13b
push 0x1008cb8
call fcn.0101c26a
pop ecx
cmp dword [0x105431c], 0
je 0x102d117
mov al, byte [0x1054320]
cmp al, 2
jae 0x102d1ca
test al, al
jne 0x102d117
mov ecx, dword [0x105430c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x102d117
mov edx, dword [0x1054314]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x1054310]
jne 0x102d117
cmp eax, edx
jne 0x102d117
push dword [ebp - 4]
push 0x10016d0
jmp 0x102d0c6
push dword [ebp - 4]
push 0x1008c50
call fcn.0101c26a
cmp dword [0x105431c], 0
pop ecx
pop ecx
je 0x102d117
mov al, byte [0x1054320]
cmp al, 2
jae 0x102d236
test al, al
jne 0x102d117
mov ecx, dword [0x105430c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x102d117
mov edx, dword [0x1054314]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x1054310]
jne 0x102d117
cmp eax, edx
jne 0x102d117
push dword [ebp - 4]
push 0x10016e0
jmp 0x102d0c6
cmp dword [edi + 0x998], 0
je 0x102d285
test eax, eax
je 0x102d285
mov dword [edi + 0x14], ebx
cmp dword [0x105431c], 0
pop ebx
je 0x102d2dd
mov al, byte [0x1054320]
cmp al, 4
jae 0x102d29c
test al, al
jne 0x102d2dd
mov edx, dword [0x105430c]
mov ecx, 0x20000000
and edx, ecx
xor eax, eax
or eax, edx
je 0x102d2dd
mov edx, dword [0x1054314]
mov eax, edx
and eax, ecx
xor ecx, ecx
cmp ecx, dword [0x1054310]
jne 0x102d2dd
cmp eax, edx
jne 0x102d2dd
push 0x1001950
push dword [0x10542f4]
push dword [0x10542f0]
call fcn.0101d19c
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4