Function at 0x1001ad90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100a71bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14ac], 0
jge 0x1001adb5
mov dword [ebp - 0x34], 0x10070af8
jmp 0x1001add2
mov ecx, dword [ebp + 8]
imul edx, dword [ecx + 0x14ac], 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc14]
mov edx, dword [ecx + edx + 4]
add edx, 2
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1464]
sub ecx, 0x8c
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0x19
jle 0x1001adf3
mov dword [ebp - 0x44], 0x10
jmp 0x1001ae00
mov edx, dword [ebp - 0x40]
mov eax, dword [edx*4 + 0x100a0168]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xc
ja case.0x1001ae29.2
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 0x1001b204]
jmp dword [edx*4 + 0x1001b1e8]
mov dword [ebp - 0x3c], 1
push 0x14
lea eax, [ebp - 0x24]
push eax
push 9
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001ae89
mov ecx, 2
shl ecx, 1
movzx edx, word [ebp + ecx - 0x24]
cmp edx, 0x30
jne 0x1001ae7a
mov eax, 2
imul ecx, eax, 3
movzx edx, word [ebp + ecx - 0x24]
cmp edx, 0x37
jne 0x1001ae7a
mov dword [ebp - 0x48], 0
jmp 0x1001ae81
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
jmp 0x1001aed9
push 0xa
lea ecx, [ebp - 0x10]
push ecx
push 9
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1001aed9
mov edx, 1
shl edx, 1
movsx eax, byte [ebp + edx - 0x10]
cmp eax, 0x30
jne 0x1001aecc
mov ecx, 1
imul edx, ecx, 3
movsx eax, byte [ebp + edx - 0x10]
cmp eax, 0x37
jne 0x1001aecc
mov dword [ebp - 0x4c], 0
jmp 0x1001aed3
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
jne 0x1001aee8
mov dword [ebp - 0x34], str.Abbrechen
jmp 0x1001aeef
mov dword [ebp - 0x34], 0x10070b10
cmp dword [ebp + 0x14], 0xffffffff
jne 0x1001aefc
mov dword [ebp + 0x14], 0xa5
mov dword [ebp + 0xc], 0
jmp case.0x1001ae29.2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14a0]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
jge 0x1001af26
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14ac]
mov dword [ebp + 0x14], edx
jmp case.0x1001ae29.2
mov dword [ebp - 0x34], 0x10070b20
cmp dword [ebp + 0x14], 0xffffffff
jne 0x1001af3f
mov dword [ebp + 0x14], 0xa4
mov dword [ebp + 0xc], 0xffffffff
jmp case.0x1001ae29.2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14a8]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x14a8], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x14], 0
jge 0x1001af7b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14ac]
mov dword [ebp + 0x14], eax
jmp case.0x1001ae29.2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14a4]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x14a4], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0x14], 0
jge 0x1001afb0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14ac]
mov dword [ebp + 0x14], ecx
jmp case.0x1001ae29.2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14a0]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x149c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
add ecx, 1
cmp ecx, 0xff
jle 0x1001aff4
push str.Number_of_controls_on_dialog_exceeds_limit_of_255
push 0x80004005
mov ecx, dword [ebp + 8]
call fcn.10039dd0
jmp 0x1001b1d9
mov edx, dword [ebp - 0x2c]
imul eax, dword [edx + 0x14], 0x14
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
mov dword [ecx + eax + 0x30], edx
mov eax, dword [ebp - 0x2c]
imul ecx, dword [eax + 0x14], 0x14
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x10]
mov dword [edx + ecx + 0x2c], eax
mov ecx, dword [ebp - 0x2c]
imul edx, dword [ecx + 0x14], 0x14
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x14]
mov dword [eax + edx + 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5534]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dx, word [ecx + 8]
add dx, 1
mov eax, dword [ebp - 0x58]
mov word [eax + 8], dx
mov ecx, dword [ebp - 0x30]
shl ecx, 8
mov edx, dword [ebp - 0x2c]
or ecx, dword [edx + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14b4]
mov word [edx + 0x10], cx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
add ecx, 1
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14b4]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x100a01e0]
or eax, 0x50000000
or eax, dword [ecx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14b4]
mov dword [edx], eax
cmp dword [ebp - 0x30], 0xd
jne 0x1001b0c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14b4]
movsx edx, word [ecx + 0xe]
cmp edx, 0xe
jle 0x1001b0c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14b4]
mov edx, dword [ecx]
or edx, 0x1000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14b4]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14b4]
add eax, 0x12
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x30], 0x10
jne 0x1001b12b
mov ecx, dword [ebp + 8]
imul edx, dword [ecx + 0x1464], 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc14]
mov edx, dword [ecx + edx + 4]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.1004ad28
add esp, 8
mov ecx, dword [ebp + 8]
imul edx, dword [ecx + 0x1464], 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc14]
mov edx, dword [ecx + edx + 4]
push edx
call fcn.1004ad4a
add esp, 4
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x28], edx
jmp 0x1001b159
mov eax, 0xffff
mov ecx, dword [ebp - 0x28]
mov word [ecx], ax
mov edx, dword [ebp - 0x28]
add edx, 2
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x30]
movzx cx, byte [eax + 0x100a01d0]
mov edx, dword [ebp - 0x28]
mov word [edx], cx
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.1004ad28
add esp, 8
mov eax, dword [ebp - 0x34]
push eax
call fcn.1004ad4a
add esp, 4
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax*2 + 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
and eax, reloc.OLEAUT32.dll_SysAllocStringLen
jns 0x1001b18e
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x1001b19b
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 0x5534]
jb 0x1001b1b7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ecx + 0x149c]
jb 0x1001b1be
mov eax, 0x80028016
jmp 0x1001b1d9
mov eax, dword [ebp + 8]
mov dword [eax + 0x14ac], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x14b4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100454bc
mov esp, ebp
pop ebp
ret