Function at 0x1004015e
Capabilities:
Check os version
Compare security identifiers
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006588f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
mov dword [esp + 8], 0x1f9c
push esi
push edi
xor edi, edi
mov dword [esp + 0x90], edx
inc edi
mov dword [esp + 0x94], ecx
mov dword [esp + 0x2c], edi
xor ebx, ebx
mov dword [esp + 0x30], 0xa27289ff
mov dword [esp + 0x2c], 0xccd2466e
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0xf3b
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], ebx
jmp 0x100401e2
mov eax, dword [esp + 0x28]
mov dword [esp + eax*4 + 0xd8], 0x64a11600
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 2
jl 0x100401cf
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x10]
test eax, eax
je 0x1004026c
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x1c]
cmp ecx, eax
cmove eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
xor edx, edx
neg eax
sub ecx, eax
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov eax, dword [esp + 0x10]
setge dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [esp + 0x30]
setl cl
xor edx, edx
cmp ecx, edi
setg dl
sub edx, eax
imul ecx, edx, 0xfffffff6
mov dword [esp + 0xd8], edx
xor edx, edx
mov eax, dword [esp + 0x20]
cmp ecx, eax
setge dl
xor eax, eax
cmp edx, 0x1032
setle al
cmp eax, dword [esp + 0x24]
jle 0x10040274
mov eax, ebx
cmp dword [esp + 0x14], ebx
je 0x10040276
mov eax, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x25b9b55b
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
jmp 0x1004029c
mov eax, dword [esp + 0x28]
mov dword [esp + eax*4 + 0x40], 0x7689351f
inc dword [esp + 0x28]
cmp dword [esp + 0x28], edi
jl 0x1004028c
mov dword [esp + 0x10], 0x18
jmp 0x10040521
mov dword [esp + 0x14], ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], ebx
jl 0x100402d6
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x100402d0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
dec dword [esp + 0x14]
jns 0x100402bd
mov dword [esp + 0x14], 0x11
jmp 0x10040512
mov dword [esp + 0x30], 0x19d6
cmp dword [esp + 0x30], 0x108a
jge 0x10040403
lea eax, [esp + 0x3c]
push eax
push 0x100080d8
call fcn.1004cd7b
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
cmp eax, 4
jge 0x10040323
push 0x10008170
call fcn.1004d431
pop ecx
jmp 0x10040403
and eax, 0x80000001
jns 0x1004032f
dec eax
or eax, 0xfffffffe
inc eax
jne 0x10040395
push 0x1000816c
call fcn.1004d431
mov dword [esp], 0x1000868c
call fcn.1004d431
mov dword [esp], 0x10008698
call fcn.1004d431
mov dword [esp], 0x100086a4
call fcn.1004d431
pop ecx
push 6
pop esi
cmp dword [esp + 0x3c], esi
jl 0x10040403
lea eax, [esi - 1]
push eax
push esi
push 0x100086b0
call fcn.1004d1c8
add esp, 0xc
push 0x100086c0
call fcn.1004d431
add esi, 2
pop ecx
cmp esi, dword [esp + 0x3c]
jle 0x1004036d
jmp 0x10040403
cmp eax, edi
jne 0x10040403
push 0x1000816c
call fcn.1004d431
mov dword [esp], 0x100086cc
call fcn.1004d431
mov dword [esp], 0x100086d8
call fcn.1004d431
mov dword [esp], 0x100086e4
call fcn.1004d431
mov dword [esp], 0x100086f0
call fcn.1004d431
pop ecx
push 7
pop esi
cmp dword [esp + 0x3c], esi
jl 0x10040403
lea eax, [esi - 1]
push eax
push esi
push 0x100086b0
call fcn.1004d1c8
add esp, 0xc
push 0x100086c0
call fcn.1004d431
add esi, 2
pop ecx
cmp esi, dword [esp + 0x3c]
jle 0x100403dd
mov dword [esp + 0x1c], 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], 0x9a5a165f
push edi
call fcn.100248e9
mov dword [esp + 0x28], ebx
jmp 0x1004043e
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x74]
mov dword [eax + ecx*4], 0x3d2afddf
inc dword [esp + 0x28]
cmp dword [esp + 0x28], edi
jl 0x1004042b
cmp dword [esp + 0x1c], ebx
je 0x100404b1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
neg eax
sbb eax, eax
xor ecx, ecx
neg eax
imul edx, eax
mov eax, dword [esp + 0x14]
cmp edx, eax
setne cl
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
jg 0x1004047c
mov eax, ebx
cmp dword [esp + 0x40], ebx
je 0x1004047e
mov eax, edi
add eax, 0xfffffffb
cmp eax, 0x86ca
jne 0x10040490
mov edx, edi
cmp dword [esp + 0x24], ebx
jne 0x10040492
mov edx, ebx
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x74]
sete cl
cmp dword [esp + 0x24], 0xfd09
mov dword [eax], ecx
jle 0x100404b1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
neg edx
cmp edx, eax
setle cl
sub ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
inc eax
cmp eax, ecx
jg 0x100404e1
mov edx, edi
cmp dword [esp + 0x14], ebx
jne 0x100404e3
mov edx, ebx
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, edx
setl cl
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x74], ebx
je 0x1004050e
push dword [esp + 0x74]
call fcn.1004d337
pop ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0x11
jge 0x100402e3
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffe6
jl 0x100402af
mov dword [esp + 0x28], 0x1f9c
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], 0xa27289ff
mov dword [esp + 0x1c], 0xec2e0cf5
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], 0x235f
cmp dword [esp + 0x30], 0xcb1
jge 0x1004061e
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
push 0x10008340
call fcn.1004cd7b
mov ecx, ebx
add esp, 0x10
cmp dword [esp + 0x50], ecx
jle 0x10040596
call fcn.100400e4
inc ecx
cmp ecx, dword [esp + 0x50]
jl 0x1004058a
mov esi, ebx
cmp dword [esp + 0x54], ebx
jle 0x100405d1
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
push 0x100081b0
call fcn.1004cd7b
add esp, 0xc
lea edx, [esp + 0x44]
dec dword [esp + 0x34]
lea ecx, [esp + 0x34]
dec dword [esp + 0x44]
call fcn.10040117
inc esi
cmp esi, dword [esp + 0x54]
jl 0x1004059e
mov esi, ebx
cmp dword [esp + 0x64], ebx
jle 0x1004061e
lea eax, [esp + 0x34]
push eax
push 0x100080b8
call fcn.1004cd7b
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
dec ecx
mov dword [esp + 0x34], ecx
call fcn.100400f4
xor ecx, ecx
mov edx, eax
call fcn.100400f4
cmp edx, eax
jne 0x1004060c
push 0x100086fc
jmp 0x10040611
push 0x10008704
call fcn.1004d1c8
inc esi
pop ecx
cmp esi, dword [esp + 0x64]
jl 0x100405d9
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], 0xfffffffc
cmp dword [esp + 0x1c], 0xa
jge 0x10040855
mov esi, 0x10655530
mov dword [esp + 0x10], 0x8cb4c23a
mov dword [esp + 0x10], ebx
jmp 0x10040658
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x48], 0xbb11accb
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10040648
mov dword [esp + 0x10], ebx
jmp 0x1004083c
mov dword [esp + 0x14], 0x80d416db
mov dword [esp + 0x14], edi
cmp dword [esp + 0x14], ebx
jl 0x1004081e
mov dword [esp + 0x30], 0x17e0
cmp dword [esp + 0x30], 0x7ac
jge 0x100407a6
call fcn.1004ceb5
push eax
push 0x100082ec
push 0x100082f0
call fcn.1004db8c
add esp, 0xc
call fcn.1004ceb5
add eax, 0x20
push eax
push 0x100082f8
push 0x100082fc
call fcn.1004db8c
add esp, 0xc
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
lea eax, [esp + 0x98]
mov dword [esp + 0x10c], ebx
push eax
mov ecx, esi
call fcn.10024266
mov eax, dword [0x10655530]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.1002684e
movzx eax, al
lea edx, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.100451f2
mov edi, dword [esp + 0x9c]
pop ecx
test edi, edi
jle 0x1004078d
mov eax, dword [0x10655530]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.1002684e
movzx eax, al
lea edx, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.100451f2
mov esi, dword [esp + 0xcc]
dec esi
pop ecx
js 0x1004077a
cmp dword [esp + 0xcc], 0x10
lea eax, [esp + 0xb8]
mov ecx, 0x10655478
cmovae eax, dword [esp + 0xb8]
mov dl, byte [eax + esi]
call fcn.10037b6e
dec esi
jns 0x10040753
push 0x10655478
call fcn.100287b2
mov esi, 0x10655530
pop ecx
dec edi
jne 0x10040725
or dword [esp + 0x10c], 0xffffffff
lea ecx, [esp + 0xb8]
xor edi, edi
push ebx
inc edi
push edi
call fcn.10025083
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x100407c9
push 0xa24
push 0x2359
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_CreateCaret]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x48]
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x48]
cmp edx, eax
setge cl
mov dword [esp + 0x30], ecx
dec dword [esp + 0x14]
jns 0x1004067e
mov dword [esp + 0x14], ebx
jmp 0x10040832
mov eax, dword [esp + 0x14]
cmp dword [esp + eax*4 + 0x48], ebx
jne 0x10040838
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jle 0x10040824
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jle 0x10040668
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xa
jl 0x1004063a
mov dword [esp + 0x20], 0xccd2466e
mov dword [esp + 0x10], 8
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 0xd
jmp 0x1004091a
mov dword [esp + 0x1c], ebx
mov ecx, 0x8e1b8814
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x10]
cmp ecx, eax
sbb edx, edx
inc edx
cmp dword [esp + 0x10], edi
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, edx
mov eax, dword [esp + 0x1c]
setle cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x10]
setge dl
xor ecx, ecx
cmp eax, edx
setne cl
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
jmp 0x1004090f
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x100408f8
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x1004090b
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 3
jle 0x100408df
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffff
jne 0x1004087e
mov dword [esp + 0x8c], edi
mov dword [esp + 0x30], 0xf3b
mov dword [esp + 0xb4], edi
mov dword [esp + 0x24], 0xfffffffe
mov dword [esp + 0x14], 0x7555b7ce
cmp dword [esp + 0x24], ebx
je 0x100409ed
mov dword [esp + 0x2c], 0xfffffff9
mov dword [esp + 0x10], 0xfffffffa
mov dword [esp + 0x1c], 0xfffffff8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
xor edx, edx
neg ecx
cmp eax, ecx
setne dl
sub edx, dword [esp + 0x24]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, 0x33e3
setne cl
xor eax, eax
cmp ecx, 0x2632
setg al
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, eax
add ecx, dword [esp + 0x14]
jne 0x100409e5
mov eax, ebx
cmp dword [esp + 0x10], ebx
je 0x100409e7
mov eax, edi
mov dword [esp + 0x14], eax
jmp 0x10040a47
push 2
lea ecx, [esp + 0xac]
call fcn.100248e9
mov dword [esp + 0x1c], ebx
jmp 0x10040a17
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa8]
mov dword [eax + ecx*4], 0xe8f59172
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 2
jl 0x10040a01
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xa8]
push ecx
mov dword [ecx], eax
call fcn.1004d337
pop ecx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040a59
push ebx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x80]
push 2
call fcn.100248e9
mov dword [esp + 0x10], 0x490c4d8e
mov dword [esp + 0x38], 0x5f0ed1ad
mov dword [esp + 0x38], 0xdc660f7e
mov dword [esp + 0x1c], ebx
jmp 0x10040a9b
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x80]
mov dword [eax + ecx*4], ebx
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 2
jl 0x10040a89
mov dword [esp + 0x10], ebx
jmp 0x10040aea
mov dword [esp + 0x1c], 0xe31d8329
mov dword [esp + 0x38], 5
mov dword [esp + 0x24], 0xcc59
mov dword [esp + 0x1c], ebx
jmp 0x10040ae0
dec dword [esp + 0x24]
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040adc
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], edi
jle 0x10040ac6
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jle 0x10040aa8
cmp dword [esp + 0x80], 0
je 0x10040b1c
push dword [esp + 0x80]
call fcn.1004d337
pop ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
push 0x1b
mov dword [esp + 0x3c], edi
pop esi
mov dword [esp + 0x10], 4
mov dword [esp + 0x10], esi
jmp 0x10040b88
lea ecx, [esp + 0xa0]
call fcn.100248e9
mov dword [esp + 0x1c], ebx
jmp 0x10040b59
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x9c]
mov dword [eax + ecx*4], 0x665683c8
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], edi
jl 0x10040b43
mov eax, dword [esp + 0x9c]
push eax
mov dword [eax], ebx
call fcn.1004d337
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
inc dword [esp + 0x14]
pop ecx
push edi
cmp dword [esp + 0x14], esi
je 0x10040b31
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esp + 0x14]
cmp ecx, eax
lea ecx, [esp + 0x5c]
setg dl
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xffffffff
call fcn.100248e9
mov dword [esp + 0x10c], edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x1c], ebx
jmp 0x10040bdb
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
mov dword [eax + ecx*4], 0xfffffffd
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], edi
jl 0x10040bc8
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040bfb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call edi
mov dword [esp + 0x14], 0x71c7bf0b
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jne 0x10040c2d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
neg ecx
sub ecx, eax
cmp dword [esp + 0x14], ecx
jg 0x10040c2d
cmp dword [esp + 0x14], ebx
jne 0x10040c2d
mov edx, ebx
jmp 0x10040c30
xor edx, edx
inc edx
mov eax, dword [esp + 0x58]
xor ecx, ecx
push 2
pop esi
mov dword [eax], edx
mov eax, dword [esp + 0x14]
cmp edx, eax
setge cl
add ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add eax, 0x3b288586
add eax, ecx
xor ecx, ecx
cmp eax, esi
setg cl
sub ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x10]
je 0x10040d27
push esi
lea ecx, [esp + 0x6c]
call fcn.100248e9
mov dword [esp + 0x24], 0xb1aa435c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jmp 0x10040c97
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov dword [eax + ecx*4], 0x1dbdae4
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], esi
jl 0x10040c84
mov dword [esp + 0x10], 5
jmp 0x10040cbc
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040cb8
call dword [sym.imp.USER32.dll_WaitMessage]
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xfffffffb
je 0x10040ca7
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax]
mov eax, dword [esp + 0x58]
sub ecx, dword [eax]
mov eax, 0x9c3f9080
cmp eax, ecx
mov eax, dword [esp + 0x68]
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, dword [eax + 4]
mov ecx, 0x9cbadbef
setg dl
xor eax, eax
cmp esi, edx
setle al
add eax, esi
imul eax, esi
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
push dword [esp + 0x68]
mov dword [esp + 0x24], eax
call fcn.1004d337
pop ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
jmp 0x10040dc5
mov dword [esp + 0x1c], 0xca12535b
xor edx, edx
mov dword [esp + 0x20], 0xfffffffa
mov dword [esp + 0x20], 0x9cad
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add ecx, 0x3dc28bf3
cmp ecx, eax
mov eax, dword [esp + 0x20]
setge dl
xor ecx, ecx
cmp edx, eax
setle cl
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
neg edx
mov eax, dword [esp + 0x58]
sbb edx, edx
xor ecx, ecx
neg edx
mov dword [eax], esi
mov dword [esp + 0x20], 0x64c7272f
mov eax, dword [esp + 0x10]
cmp edx, eax
mov eax, dword [esp + 0x20]
setg cl
xor edx, edx
cmp eax, ecx
setl dl
xor ecx, ecx
add edx, 0x954a
cmp edx, 5
setl cl
xor eax, eax
cmp esi, ecx
sete al
cmp eax, 0x1a7d
jl 0x10040dbd
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
or dword [esp + 0x10c], 0xffffffff
push dword [esp + 0x58]
call fcn.1004d337
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
pop ecx
mov dword [esp + 0x1c], ebx
jmp 0x10040dfc
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0xf0], 0x64a11600
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 2
jl 0x10040de9
push 8
pop eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xffff
mov dword [esp + 0x24], 0x7dcda720
mov dword [esp + 0x20], 5
mov dword [esp + 0x20], eax
cmp dword [esp + 0x14], ebx
je 0x10040e84
mov eax, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, eax
setne dl
xor eax, eax
add edx, dword [esp + 0x10]
cmp edx, 0xbf11
setge al
sub eax, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
test eax, eax
jle 0x10040e84
xor esi, esi
inc esi
mov eax, esi
jmp 0x10040e89
xor esi, esi
mov eax, ebx
inc esi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], ebx
jne 0x10040e9b
mov ecx, ebx
cmp dword [esp + 0x24], ebx
je 0x10040e9d
mov ecx, esi
mov eax, dword [esp + 0x14]
add eax, ecx
sub eax, dword [esp + 0x14]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040ed6
push ebx
push 0x84f
push 0x5d6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call edi
push eax
call dword [sym.imp.GDI32.dll_GetDIBColorTable]
inc dword [esp + 0x28]
mov dword [esp + 0x10], 9
mov dword [esp + 0x20], 7
mov dword [esp + 0x20], 0xfffffffc
mov dword [esp + 0x20], 0xee676845
mov dword [esp + 0x10], 0xc
cmp dword [esp + 0x10], ebx
jl 0x10040ffd
mov dword [esp + 0x20], 0xffffffff
push 2
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], ebx
pop ecx
jmp 0x10040f34
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xd0], 0x3989226c
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ecx
jl 0x10040f21
mov dword [esp + 0x14], ebx
jmp 0x10040f53
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xf8], 0xffffffff
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ecx
jl 0x10040f40
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xd4], eax
test eax, eax
jne 0x10040faa
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x10]
sub ecx, eax
push 4
pop eax
cmp eax, ecx
sbb eax, eax
xor ecx, ecx
neg eax
imul eax, eax, 0x1a4e
test eax, eax
setns cl
xor eax, eax
cmp ecx, 0x6aeba4d3
setge al
xor ecx, ecx
cmp eax, 0xfffffff6
mov eax, ebx
setge cl
cmp ecx, dword [esp + 0x24]
jg 0x10040fac
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xfffffff8
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x10]
sete cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x10]
setne dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x24]
setg cl
imul edx, ecx, 0x7d19
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setge cl
mov dword [esp + 0x20], ecx
dec dword [esp + 0x10]
jns 0x10040f0c
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x28]
test eax, eax
je 0x10041084
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
dec dword [esp + 0x2c]
cmp ecx, eax
mov eax, esi
cmove eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
neg eax
sbb eax, eax
xor edx, edx
neg eax
sub ecx, eax
mov eax, dword [esp + 0x30]
cmp ecx, eax
mov eax, dword [esp + 0x28]
setge dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [esp + 0x8c]
setl cl
xor edx, edx
cmp ecx, esi
setg dl
sub edx, eax
imul ecx, edx, 0xfffffff6
mov dword [esp + 0xf0], edx
xor edx, edx
mov eax, dword [esp + 0xb4]
cmp ecx, eax
setge dl
xor eax, eax
cmp edx, 0x1032
setle al
cmp eax, dword [esp + 0x30]
jle 0x1004108a
cmp dword [esp + 0x38], ebx
je 0x1004108c
mov ebx, esi
mov eax, dword [esp + 0x90]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x38], ebx
mov esi, edx
mov edi, eax
call fcn.10040072
mov ecx, dword [esp + 0x104]
add eax, esi
add eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret