Function at 0x41bef0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 8], 0
mov dword [ebp - 0x28c], esi
jne 0x41c405
push ebx
xor ebx, ebx
push edi
mov byte [esi + 8], 1
cmp dword [esi + 0xc], ebx
je 0x41c14f
push 0x104
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41c14f
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00401f43
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x288]
push edx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x288], 0x5c
call fcn.0041b6b0
push eax
xor ecx, ecx
push ebx
lea edx, [ebp - 0x260]
mov word [ebp - 0x240], cx
push edx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], ebx
call fcn.00401c51
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x260]
call fcn.00401c51
lea ecx, [ebp - 0x244]
call fcn.0040199c
mov edx, dword [esi + 0xc]
push 0xa
lea ecx, [ebp - 0x18]
push ecx
push 3
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c136
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x244]
call fcn.00401f43
xor esi, esi
lea esp, [esp]
mov ecx, dword [esi*8 + 0x509c8c]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00491c90
add esp, 8
test eax, eax
je 0x41c010
inc esi
cmp esi, 8
jb 0x41bff0
jmp 0x41c03c
mov esi, dword [esi*8 + 0x509c88]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c020
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x244]
call fcn.00401ce4
xor edi, edi
mov esi, 0x4d1008
mov eax, esi
lea edx, [eax + 2]
jmp 0x41c050
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c050
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x230]
push esi
push eax
push ebx
lea ecx, [ebp - 0x244]
call fcn.004012ac
test eax, eax
je 0x41c08b
add esi, 0x1e
inc edi
cmp esi, 0x4d2430
jl 0x41c043
mov esi, ebx
jmp 0x41c111
push 8
push str.Locale_
lea ecx, [ebp - 0x260]
call fcn.00402933
mov ecx, edi
shl ecx, 4
sub ecx, edi
lea edx, [ecx*2 + str.de_de]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c0b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x260]
call fcn.00402933
push 0xb
push str._brdlang32.
lea ecx, [ebp - 0x260]
call fcn.00402933
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x244]
push edx
lea ecx, [ebp - 0x260]
call fcn.0040288a
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x41c108
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp dword [ebp - 0x22c], 8
jb 0x41c129
mov eax, dword [ebp - 0x240]
push eax
call fcn.0048e976
add esp, 4
cmp esi, ebx
je 0x41c136
mov ecx, dword [ebp - 0x28c]
mov dword [ecx + 4], esi
cmp dword [ebp - 0x248], 8
jb 0x41c403
mov edx, dword [ebp - 0x25c]
push edx
jmp 0x41c3fb
push 0x2b
xor eax, eax
push str.SoftwareAdobeAcrobat_Reader10.0Language
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], ebx
mov word [ebp - 0x278], ax
call fcn.00401ce4
mov ecx, dword [0x50dd18]
cmp byte [ecx + 0x31], bl
je 0x41c197
push 0x2a
push str.SoftwareAdobeAdobe_Acrobat10.0Language
lea ecx, [ebp - 0x27c]
call fcn.00401ce4
push 9
push str.current_
lea ecx, [ebp - 0x27c]
call fcn.00402933
mov eax, dword [ebp - 0x278]
mov edi, 8
cmp dword [ebp - 0x264], edi
jae 0x41c1c2
lea eax, [ebp - 0x278]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea edx, [ebp - 0x284]
push edx
push eax
push SysReAllocStringLen
call esi
test eax, eax
je 0x41c21e
mov eax, dword [ebp - 0x278]
cmp dword [ebp - 0x264], edi
jae 0x41c1ef
lea eax, [ebp - 0x278]
lea ecx, [ebp - 0x284]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x41c21e
lea ecx, [ebp - 0x27c]
call fcn.0040199c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x284]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [ebp - 0x280]
push edx
push ebx
push 0x4cec14
push eax
mov dword [ebp - 0x280], ebx
call edi
push ebx
push 0x4d0ee8
call fcn.0041b630
test ax, ax
mov eax, dword [ebp - 0x280]
setne bl
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048e1ac
mov ecx, dword [ebp - 0x284]
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x280]
push eax
push esi
push 0x4cec14
push ecx
call edi
test eax, eax
jne 0x41c3d5
test bl, bl
je 0x41c2a1
mov eax, dword [ebp - 0x280]
xor edx, edx
mov word [esi + eax*2], dx
mov ecx, dword [ebp - 0x28c]
push esi
call fcn.0041b9a0
test al, al
je 0x41c3d5
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test bl, bl
je 0x41c2e0
test eax, eax
je 0x41c3d5
cmp eax, 0x104
jae 0x41c3d5
push esi
lea ecx, [ebp - 0x260]
call fcn.00401f43
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x228]
push edx
call edi
test bl, bl
je 0x41c307
test eax, eax
je 0x41c3ca
push esi
call edi
test bl, bl
je 0x41c316
test eax, eax
je 0x41c3ca
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x228]
push eax
call edi
test bl, bl
je 0x41c332
test eax, eax
je 0x41c3ca
push 0x4d0efc
lea ecx, [ebp - 0x244]
call fcn.00401f43
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4d0ee4
lea ecx, [ebp - 0x260]
call fcn.0041b840
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x260]
call fcn.004098d6
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x244]
call fcn.0040288a
lea ecx, [ebp - 0x20]
call fcn.0040199c
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x41c393
lea eax, [ebp - 0x240]
push eax
lea edx, [ebp - 0x228]
push edx
call edi
test bl, bl
je 0x41c3a5
test eax, eax
je 0x41c3bf
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41c3bf
mov ecx, dword [ebp - 0x28c]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x244]
call fcn.0040199c
lea ecx, [ebp - 0x260]
call fcn.0040199c
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0048e976
add esp, 4
cmp dword [ebp - 0x264], 8
jb 0x41c403
mov eax, dword [ebp - 0x278]
push eax
call fcn.0048e976
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret