Function at 0x3008e4ef
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 0x3008e57b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x3008e538
and eax, 0xffff
or eax, 0x80070000
lea ecx, [eax + 0x7ffbd000]
cmp ecx, 0xfff
jbe 0x3008e54c
push eax
call fcn.3009da0b
push dword [ebp + 0xc]
mov esi, 0x3003f9d4
push 0x100c2
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.3009db1c
mov esi, eax
add esp, 0x20
cmp esi, ebx
jl 0x3008e7e8
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call sub.WINSPOOL.DRV_GetPrinterW
test eax, eax
mov esi, dword [ebp + 8]
jne 0x3008e5ca
push dword [ebp - 8]
call fcn.30002bc4
cmp eax, ebx
pop ecx
mov dword [esi + 0x1fc], eax
je 0x3008e5f5
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push 2
push dword [ebp - 4]
call sub.WINSPOOL.DRV_GetPrinterW
test eax, eax
je 0x3008e5ca
mov eax, dword [esi + 0x1fc]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x1f8], eax
cmp dword [esi + 0x1f8], ebx
jne 0x3008e631
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.30002bc4
cmp eax, ebx
pop ecx
mov dword [esi + 0x1f8], eax
jne 0x3008e5ff
mov esi, 0x8007000e
jmp 0x3008e7e8
push 2
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
call sub.WINSPOOL.DRV_DocumentPropertiesW
cmp eax, 1
je 0x3008e631
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x3008e7e6
and eax, 0xffff
or eax, 0x80070000
jmp 0x3008e7e6
push ebx
lea ecx, [esi + 0x158]
mov word [esi + 0xf8], 8
mov dword [esi + 0x100], ebx
mov word [esi + 0xb8], 8
mov dword [esi + 0xc0], ebx
call fcn.3008d2f9
push ebx
lea ecx, [esi + 0x168]
call fcn.3008d2f9
push ebx
lea ecx, [esi + 0x178]
call fcn.3008d2f9
push ebx
lea ecx, [esi + 0x188]
call fcn.3008d2f9
xor edi, edi
inc edi
push edi
lea ecx, [esi + 0x1b8]
call fcn.3008d2f9
push edi
lea ecx, [esi + 0x1c8]
call fcn.3008d2f9
push ebx
lea ecx, [esi + 0xa8]
mov word [esi + 0x198], bx
call fcn.30011217
push edi
lea ecx, [esi + 0x1a8]
call fcn.3008d2f9
push ebx
lea ecx, [esi + 0xc8]
call fcn.30011217
push edi
lea ecx, [esi + 0xd8]
call fcn.30011217
push edi
lea ecx, [esi + 0xe8]
call fcn.30011217
push 4
lea eax, [ebp - 0xc]
push eax
push 0x2000000d
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x3008e701
mov esi, 0x80004005
jmp 0x3008e7e8
cmp dword [ebp - 0xc], ebx
je 0x3008e732
mov edi, 0x124f8
push edi
lea ecx, [esi + 0x108]
call fcn.3008d2f9
push edi
lea ecx, [esi + 0x118]
call fcn.3008d2f9
push edi
lea ecx, [esi + 0x128]
call fcn.3008d2f9
push edi
jmp 0x3008e7a1
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x108]
call fcn.3008d2f9
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x118]
call fcn.3008d2f9
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x128]
call fcn.3008d2f9
push 0x9ec
push 0x3e8
push 0x30d40
call edi
push eax
lea ecx, [esi + 0x138]
call fcn.3008d2f9
push ebx
lea ecx, [esi + 0x38]
call fcn.3008d2f9
push ebx
lea ecx, [esi + 0x68]
call fcn.3008d2f9
push ebx
lea ecx, [esi + 8]
call fcn.30011217
push 1
lea ecx, [esi + 0x1d8]
call fcn.30011217
push ebx
lea ecx, [esi + 0x148]
call fcn.30011217
push esi
call fcn.3008deb9
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x3008e7f5
push dword [ebp - 4]
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8