Function at 0x10015360
Capabilities:
Check os version

Disassembly:
sub esp, 0x1b0
push ebx
push ebp
push esi
lea eax, [esp + 0x24]
push edi
push eax
xor esi, esi
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x38]
cmp eax, 1
jne 0x1001545e
mov edx, dword [esp + 0x1c4]
lea ecx, [esp + 0x14]
push ecx
push 5
push edx
push 0x46
mov dword [esp + 0x24], esi
call fcn.10010830
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x100153be
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, dword [esp + 0x1cc]
mov ebp, dword [esp + 0x1c8]
mov dword [esp + 0x10], esi
lea edi, [eax + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jae 0x1001543f
mov eax, dword [edi]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x100153f4
cmp cl, 0x5c
jne 0x1001542f
mov al, byte [eax + 1]
cmp al, 0x2f
je 0x100153ff
cmp al, 0x5c
jne 0x1001542f
push ebp
push ebx
lea ecx, [esp + 0xc4]
push str.EPSON_LPR_s__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi]
add esp, 0x10
lea edx, [esp + 0xbc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov ecx, dword [esp + 0x10]
add edi, 0x14
inc ecx
test esi, esi
mov dword [esp + 0x10], ecx
je 0x100153da
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret
cmp eax, 2
jne 0x10015663
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c4]
cmp eax, 4
lea ecx, [esp + 0x14]
sbb eax, eax
push ecx
add eax, 2
mov dword [esp + 0x24], esi
push eax
push ebp
mov dword [esp + 0x20], esi
call fcn.100106e0
mov ebx, eax
add esp, 0xc
cmp ebx, esi
mov dword [esp + 0x1c], ebx
jne 0x100154a8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret
mov eax, dword [esp + 0x2c]
cmp eax, 5
jb 0x1001551b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp edx, eax
jae 0x100155f2
mov eax, dword [edi + 8]
push str.Standard_TCP_IP_Port
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10015506
mov ecx, dword [edi]
mov edx, dword [esp + 0x1cc]
push ecx
push edx
push eax
push ebp
call fcn.10015970
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015506
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
add edi, 0x14
inc ecx
test esi, esi
mov dword [esp + 0x10], ecx
je 0x100154c2
jmp 0x100155f6
cmp eax, 4
jne 0x10015655
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [esp + 0x1cc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jae 0x100155e7
mov edx, dword [edi]
push edx
call ebx
mov edx, eax
push ebp
mov dword [esp + 0x28], edx
call ebx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jl 0x100155c0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call ebx
mov edx, dword [edi]
cmp byte [eax + edx], 0
je 0x10015584
push ebp
call ebx
mov ecx, dword [edi]
cmp byte [eax + ecx], 0x3a
jne 0x100155c6
push ebp
call ebx
mov edx, dword [edi]
push ebp
mov al, byte [eax + edx]
mov byte [esp + 0x1f], al
call ebx
mov ecx, dword [edi]
push ebp
mov byte [eax + ecx], 0
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x100155c6
push ebp
call ebx
mov ecx, dword [edi]
mov dl, byte [esp + 0x1b]
mov byte [eax + ecx], dl
mov eax, dword [edi]
mov dword [esp + 0x20], eax
jmp 0x100155c6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
add edi, 0x14
inc ecx
test esi, esi
mov dword [esp + 0x10], ecx
je 0x10015542
mov ebp, dword [esp + 0x1c4]
mov ebx, dword [esp + 0x1c]
jmp 0x100155f6
mov ebp, dword [esp + 0x1c4]
mov ebx, dword [esp + 0x1c]
test esi, esi
je 0x10015655
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push 5
push ebp
push 0x46
mov dword [esp + 0x24], esi
call fcn.10010830
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x10015647
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ebx, ebx
lea edi, [eax + 4]
cmp ebx, dword [esp + 0x14]
jae 0x10015643
mov edx, dword [esp + 0x20]
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, eax
neg esi
sbb esi, esi
add edi, 0x14
inc esi
inc ebx
test esi, esi
je 0x10015620
mov ebx, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret