Function at 0x1002fae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007757f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0x3c], ecx
push 3
lea ecx, [esp + 0x64]
mov dword [esp + 0x44], esi
call fcn.10023f9c
mov dword [esp + 0x24], 6
xor ebx, ebx
mov dword [esp + 0x24], 4
mov dword [esp + 0x18], ebx
jmp 0x1002fb44
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x7ddc85f7
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 3
jl 0x1002fb31
mov ecx, dword [esp + 0x60]
mov dword [ecx + 8], 0xfffffff4
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0xfffffffd
sbb eax, eax
neg eax
inc dword [ecx + 8]
cmp dword [ecx + 8], 0xfffffff8
mov dword [esp + 0x24], eax
jne 0x1002fb56
lea ecx, [esp + 0x60]
call fcn.1002401e
xor edx, edx
inc edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ebx
jmp 0x1002fbe0
mov dword [esp + 0x20], edx
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], bl
je 0x1002fbb6
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
inc edx
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x18]
test eax, eax
je 0x1002fbcd
cmp dword [esp + 0x20], ebx
je 0x1002fbcd
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
xor ecx, ecx
test eax, eax
sets cl
mov dword [esp + 0x24], ecx
inc dword [esp + 0x18]
cmp dword [esp + 0x18], edx
jne 0x1002fb9e
push dword [esp + 0x3c]
movdqa xmm0, xmmword [0x100095e0]
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x90]
mov dword [esp + 0x5c], ebx
push eax
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], ebx
movdqu xmmword [esp + 0x98], xmm0
mov dword [esp + 0x6c], ebx
call fcn.1002510b
push 2
lea ecx, [esp + 0x80]
mov dword [esp + 0xc0], ebx
call fcn.10023f9c
mov dword [esp + 0x1c], 0x57976326
mov dword [esp + 0x18], ebx
jmp 0x1002fc57
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
mov dword [eax + ecx*4], 0xfffffff7
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jl 0x1002fc44
xor edi, edi
inc edi
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x1c], ebx
jl 0x1002fc87
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1002fc81
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
dec dword [esp + 0x1c]
jns 0x1002fc6b
lea ecx, [esp + 0x7c]
call fcn.1002401e
push edi
lea ecx, [esp + 0x70]
call fcn.10023f9c
xor eax, eax
inc eax
mov byte [esp + 0xbc], al
mov dword [esp + 0x78], 6
mov dword [esp + 0x10], 0xfffffffc
mov dword [esp + 0x1c], 9
push 7
mov dword [esp + 0x24], ebx
pop edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], 0x23020f62
mov dword [esp + 0x10], 0xfffffffb
jmp 0x1002fd62
mov dword [esp + 0x18], 0x5534
xor edx, edx
mov dword [esp + 0x20], 0x65256810
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x20], 0xfa4c8210
mov dword [esp + 0x20], 0x6d210ec3
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp ecx, eax
setle dl
sub edx, dword [esp + 0x18]
neg edx
sbb edx, edx
inc edx
mov dword [esp + 0x20], edx
xor edx, edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
mov eax, dword [esp + 0x18]
setl dl
imul eax, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x20], edx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x17
jg 0x1002fcdc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
sub ecx, eax
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, edi
setne dl
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setne cl
xor eax, eax
cmp ecx, 0x19bd
mov ecx, dword [esp + 0x2c]
setle al
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
cmp eax, ecx
setle dl
imul edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x18]
jge 0x1002fdcc
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 3
mov dword [esp + 0x14], 0xfffffff6
mov dword [esp + 0x14], ebx
pop edi
jmp 0x1002fdf8
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x98], 0x568d
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x1002fde5
xor edx, edx
mov dword [esp + 0x10], ebx
inc edx
jmp 0x1002fe1a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
mov dword [eax + ecx*4], 0x4746a1c1
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x1002fe07
push edi
lea ecx, [esp + 0x48]
call fcn.10023f9c
mov dword [esp + 0x10], ebx
jmp 0x1002fe40
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x30], 0xffffffff
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x1002fe30
xor edx, edx
mov dword [esp + 0x10], ebx
inc edx
jmp 0x1002fe5f
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x28], 0x8ef6b8f3
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x1002fe4f
mov dword [esp + 0x10], ebx
jmp 0x1002fe7e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xfffffffa
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x1002fe6b
mov dword [esp + 0x30], 0x16
jmp 0x1002fec1
mov dword [esp + 0x1c], 0xf951fe77
mov dword [esp + 0x1c], 0xfffffff3
jmp 0x1002feb6
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1002feb2
push ebx
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
dec dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xfffffff0
jg 0x1002fea0
dec dword [esp + 0x30]
cmp dword [esp + 0x30], 0x11
jne 0x1002fe8e
mov dword [esp + 0x28], 0xfffffffc
cmp dword [esp + 0x28], 0xffffffff
jge 0x10030084
mov dword [esp + 0x10], 8
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x10]
neg eax
je 0x1002ff0d
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
xor edx, edx
add ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp ecx, eax
mov eax, dword [esp + 0x28]
setle dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [esp + 0x10]
setne cl
sub ecx, eax
mov eax, dword [esp + 0x28]
sub eax, ecx
neg eax
sbb eax, eax
inc eax
cmp eax, dword [esp + 0x10]
je 0x10030010
cmp dword [esp + 0x30], ebx
jne 0x10030010
mov dword [esp + 0x10], ebx
jmp 0x10030003
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x24], 0xc9ea21f9
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x18], 2
jg 0x1002ffee
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [edi + 8], ebx
mov ecx, dword [esp + 0x2c]
setne al
sub ecx, eax
mov eax, dword [esp + 0x44]
push 0
cmp ecx, dword [eax + edx*4]
pop eax
setl al
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, 0x70d28cdd
setle cl
xor edx, edx
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
cmp dword [ecx + esi*4], eax
setle dl
add edx, 0x9815
imul eax, edx, 0x5dbd
mov dword [esp + 0x30], eax
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1002ffe3
push ebx
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jle 0x1002ff78
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1002ffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x31
jge 0x1002ff59
jmp 0x1003006e
mov dword [esp + 0x20], 6
xor edx, edx
mov dword [esp + 0x24], 9
inc edx
mov dword [esp + 0x1c], ebx
jmp 0x10030039
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x50], 0x510b2d4a
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], edx
jl 0x10030029
cmp dword [esp + 0x20], ebx
jne 0x10030059
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
imul eax, dword [esp + 0x50], 0xfffffff6
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 0xffffffff
jl 0x1002fedb
mov esi, dword [esp + 0x40]
push 3
pop edi
lea ecx, [esp + 0x44]
call fcn.1002401e
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], edi
jge 0x100300af
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xa4], ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x1003009a
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x6c]
mov dword [eax], ebx
call fcn.1002401e
or dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.1002401e
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esp + 0x3c]
mov edi, edx
mov esi, eax
call fcn.1002fa6e
mov ecx, dword [esp + 0xb4]
add eax, esi
add eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret