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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424cf3
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x28]
call fcn.00404e10
test eax, eax
je 0x401ead
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xaa
push 8
mov dword [ebp - 0x3a0], esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x39c]
push eax
call fcn.004012a0
mov eax, dword [ebp - 0x280]
mov dword [ebp - 4], 0
test eax, eax
je 0x401e96
push 0x55
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x401e96
push 0
push dword [ebp - 0x280]
push str.PrinterName
push esi
call fcn.00404b30
add esp, 0x10
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x248]
push eax
call fcn.004012a0
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 1
test eax, eax
je 0x401bd3
cmp word [eax], 0
jne 0x401bf2
push str.PrinterName
push str.Setup
push esi
call fcn.00406de0
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
call fcn.00407b20
push str.PortName
lea ecx, [ebp - 0x3a0]
call fcn.004029b0
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x398]
lea eax, [ebp - 0x39c]
push eax
call fcn.004012a0
push str.DriverName
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 2
call fcn.004029b0
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x39c]
push eax
call fcn.004012a0
push str.DriverPath
push str.Setup
push esi
mov byte [ebp - 4], 3
call fcn.00406de0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x368]
push eax
call fcn.004012a0
push str.ConfigFile
push str.Setup
push esi
mov byte [ebp - 4], 4
call fcn.00406de0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x338]
push eax
call fcn.004012a0
push str.DataFile
push str.Setup
push esi
mov byte [ebp - 4], 5
call fcn.00406de0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x308]
push eax
call fcn.004012a0
push str.Scriptlet
push str.Setup
push esi
mov byte [ebp - 4], 6
call fcn.00406de0
add esp, 0xc
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x39c]
lea ecx, [ebp - 0x2d8]
push eax
call fcn.004012a0
push esi
push 0x1389
push str.Version
push str.Setup
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x42626c
push 0x42626c
push 0x42626c
push 0x42626c
push dword [ebp - 0x310]
push dword [ebp - 0x2e0]
push dword [ebp - 0x340]
push 0x42626c
push dword [ebp - 0x250]
push eax
call fcn.00403d20
mov edi, eax
mov dword [ebp - 0x3b4], 0x404810
add esp, 0x28
mov dword [ebp - 0x3b0], edi
mov byte [ebp - 4], 8
test edi, edi
jne 0x401d77
xor esi, esi
jmp 0x401e34
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00413a20
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 0x401dbe
movzx eax, word [esi + ecx]
test ax, ax
je 0x401dbe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x401da0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
jne 0x401dd8
nop
mov dword [0], ecx
jmp 0x401dd0
mov esi, dword [ebp - 0x2b0]
lea ebx, [ebp - 0x218]
mov edx, dword [ebp - 0x370]
mov ecx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x220]
push edi
push ebx
push esi
push edx
push ecx
push eax
push dword [ebp + 0x24]
mov dword [ebp - 0x39c], edi
push dword [ebp + 0x20]
mov dword [ebp - 0x3a0], esi
push dword [ebp + 0x1c]
mov dword [ebp - 0x3a4], edx
push dword [ebp + 0x18]
mov dword [ebp - 0x3a8], ecx
mov dword [ebp - 0x3ac], eax
call dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0x28
mov esi, eax
test edi, edi
je 0x401e47
lea ecx, [edi - 4]
push ecx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x2d8]
call fcn.00402430
lea ecx, [ebp - 0x308]
call fcn.00402430
lea ecx, [ebp - 0x338]
call fcn.00402430
lea ecx, [ebp - 0x368]
call fcn.00402430
lea ecx, [ebp - 0x278]
call fcn.00402430
lea ecx, [ebp - 0x398]
call fcn.00402430
lea ecx, [ebp - 0x248]
call fcn.00402430
jmp 0x401ea0
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea ecx, [ebp - 0x2a8]
call fcn.00402430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret