Function at 0x3008ab0e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 8
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
jne 0x3008ab9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x3008ab57
and eax, 0xffff
or eax, 0x80070000
lea ecx, [eax + 0x7ffbd000]
cmp ecx, 0xfff
jbe 0x3008ab6b
push eax
call fcn.3009ac38
push dword [ebp + 0xc]
mov esi, 0x30039f64
push 0x100ca
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x800430ae
movsd dword es:[edi], dword [esi]
call fcn.3009ad49
mov esi, eax
add esp, 0x20
cmp esi, ebx
jl 0x3008ae09
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
pop edi
push edi
push dword [ebp - 4]
call sub.WINSPOOL.DRV_GetPrinterW
mov esi, dword [ebp + 8]
test eax, eax
jne 0x3008abea
push dword [ebp - 8]
call fcn.30002efd
pop ecx
mov dword [esi + 0x1fc], eax
cmp eax, ebx
je 0x3008ac15
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.WINSPOOL.DRV_GetPrinterW
test eax, eax
je 0x3008abea
mov eax, dword [esi + 0x1fc]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x1f8], eax
cmp dword [esi + 0x1f8], ebx
jne 0x3008ac50
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
call sub.WINSPOOL.DRV_DocumentPropertiesW
push eax
mov dword [ebp - 8], eax
call fcn.30002efd
pop ecx
mov dword [esi + 0x1f8], eax
cmp eax, ebx
jne 0x3008ac1f
mov esi, 0x8007000e
jmp 0x3008ae09
push edi
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
call sub.WINSPOOL.DRV_DocumentPropertiesW
cmp eax, 1
je 0x3008ac50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x3008ae07
and eax, 0xffff
or eax, 0x80070000
jmp 0x3008ae07
push 8
pop eax
push ebx
lea ecx, [esi + 0x158]
mov word [esi + 0xf8], ax
mov dword [esi + 0x100], ebx
mov word [esi + 0xb8], ax
mov dword [esi + 0xc0], ebx
call fcn.3006ab4a
push ebx
lea ecx, [esi + 0x168]
call fcn.3006ab4a
push ebx
lea ecx, [esi + 0x178]
call fcn.3006ab4a
push ebx
lea ecx, [esi + 0x188]
call fcn.3006ab4a
push 1
lea ecx, [esi + 0x1b8]
call fcn.3006ab4a
push 1
lea ecx, [esi + 0x1c8]
call fcn.3006ab4a
xor eax, eax
push ebx
lea ecx, [esi + 0xa8]
mov word [esi + 0x198], ax
call fcn.300127c6
push 1
lea ecx, [esi + 0x1a8]
call fcn.3006ab4a
push ebx
lea ecx, [esi + 0xc8]
call fcn.300127c6
push 1
lea ecx, [esi + 0xd8]
call fcn.300127c6
push 1
lea ecx, [esi + 0xe8]
call fcn.300127c6
push edi
lea eax, [ebp - 0xc]
push eax
push 0x2000000d
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x3008ad22
mov esi, 0x80004005
jmp 0x3008ae09
cmp dword [ebp - 0xc], ebx
je 0x3008ad53
mov edi, 0x124f8
push edi
lea ecx, [esi + 0x108]
call fcn.3006ab4a
push edi
lea ecx, [esi + 0x118]
call fcn.3006ab4a
push edi
lea ecx, [esi + 0x128]
call fcn.3006ab4a
push edi
jmp 0x3008adc2
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x108]
call fcn.3006ab4a
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x118]
call fcn.3006ab4a
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x128]
call fcn.3006ab4a
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x138]
call fcn.3006ab4a
push ebx
lea ecx, [esi + 0x38]
call fcn.3006ab4a
push ebx
lea ecx, [esi + 0x68]
call fcn.3006ab4a
push ebx
lea ecx, [esi + 8]
call fcn.300127c6
push 1
lea ecx, [esi + 0x1d8]
call fcn.300127c6
push ebx
lea ecx, [esi + 0x148]
call fcn.300127c6
push esi
call fcn.3008a4d4
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x3008ae16
push dword [ebp - 4]
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8