Function at 0x401a40
Capabilities:
Get geographical location
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424b48
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x444624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x28]
call fcn.00405350
test eax, eax
je 0x40201f
push 0xaa
push 8
mov dword [ebp - 0x3a4], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x398]
lea eax, [ebp - 0x39c]
push eax
call fcn.00401240
mov edi, dword [ebp - 0x370]
mov dword [ebp - 4], 0
test edi, edi
je 0x401fc8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0x55
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x401fc8
push 0
push dword [ebp - 0x370]
push str.PrinterName
push esi
call fcn.00404ec0
add esp, 0x10
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x248]
push eax
call fcn.00401240
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 2
test eax, eax
je 0x401b20
cmp word [eax], 0
jne 0x401b3f
push str.PrinterName
push str.Setup
push esi
call fcn.004072e0
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
call fcn.00408040
push str.PortName
lea ecx, [ebp - 0x3a4]
call fcn.00402b20
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x368]
lea eax, [ebp - 0x39c]
push eax
call fcn.00401240
push str.DriverName
lea ecx, [ebp - 0x3a4]
mov byte [ebp - 4], 3
call fcn.00402b20
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x39c]
push eax
call fcn.00401240
push str.DriverPath
push str.Setup
push esi
mov byte [ebp - 4], 4
call fcn.004072e0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x338]
push eax
call fcn.00401240
push str.ConfigFile
push str.Setup
push esi
mov byte [ebp - 4], 5
call fcn.004072e0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x308]
push eax
call fcn.00401240
push str.DataFile
push str.Setup
push esi
mov byte [ebp - 4], 6
call fcn.004072e0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x2d8]
push eax
call fcn.00401240
push str.Scriptlet
push str.Setup
push esi
mov byte [ebp - 4], 7
call fcn.004072e0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x2a8]
push eax
call fcn.00401240
push esi
push 0x1389
push str.Version
push str.Setup
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x426260
push 0x426260
push 0x426260
push 0x426260
push dword [ebp - 0x2e0]
push dword [ebp - 0x2b0]
push dword [ebp - 0x310]
push 0x426260
push dword [ebp - 0x250]
push eax
call fcn.00403f10
mov edi, eax
mov dword [ebp - 0x3a0], 0x404a30
add esp, 0x28
mov dword [ebp - 0x39c], edi
mov byte [ebp - 4], 9
test edi, edi
jne 0x401cc4
xor esi, esi
jmp 0x401d5c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004140a0
lea ecx, [ebp - 0x218]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x401d0e
movzx eax, word [ecx + esi]
test ax, ax
je 0x401d0e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x401cf0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
jne 0x401d28
nop
mov dword [0], ecx
jmp 0x401d20
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x280]
push dword [ebp - 0x340]
push dword [ebp - 0x250]
push dword [ebp - 0x220]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [ebp + 8]
add esp, 0x28
mov esi, eax
test edi, edi
je 0x401d73
lea ecx, [edi - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x280]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x401da1
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x40203a
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x401dc8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x2a8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x284], 0
mov eax, dword [ebp - 0x2b0]
mov byte [ebp - 4], 0x15
test eax, eax
je 0x401df6
mov ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x40203f
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
je 0x401e1d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x2d8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x2b4], 0
mov eax, dword [ebp - 0x2e0]
mov byte [ebp - 4], 0x16
test eax, eax
je 0x401e4b
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x402044
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x2e4]
test ecx, ecx
je 0x401e72
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x308]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x2e4], 0
mov eax, dword [ebp - 0x310]
mov byte [ebp - 4], 0x17
test eax, eax
je 0x401ea0
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x402049
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x314]
test ecx, ecx
je 0x401ec7
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x338]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x314], 0
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 0x18
test eax, eax
je 0x401ef5
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x40204e
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x254]
test ecx, ecx
je 0x401f1c
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x278]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x254], 0
mov eax, dword [ebp - 0x340]
mov byte [ebp - 4], 0x19
test eax, eax
je 0x401f4a
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x402053
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x344]
test ecx, ecx
je 0x401f71
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x368]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x344], 0
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x401f9f
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x402058
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x401fd2
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x248]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x224], 0
jmp 0x401fd2
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, dword [ebp - 0x370]
mov dword [ebp - 4], 0x1b
test eax, eax
je 0x401fff
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0x39c], eax
test ecx, ecx
je 0x40205d
mov eax, dword [ecx]
lea edx, [ebp - 0x39c]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x374]
test ecx, ecx
je 0x40201d
mov edx, dword [ecx]
lea eax, [ebp - 0x398]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.0041284a
mov esp, ebp
pop ebp
ret
call fcn.00412550
call fcn.00412550
call fcn.00412550
call fcn.00412550
call fcn.00412550
call fcn.00412550
call fcn.00412550
call fcn.00412550
int3