Function at 0x1011c030
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x103491c9
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov edi, ecx
push 0x84
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x170], 0
test eax, eax
je 0x1011c0b4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.1014b960
mov esi, eax
jmp 0x1011c0b6
xor esi, esi
mov dword [esp + 0x170], 0xffffffff
mov ecx, esi
mov eax, dword [esi]
push 1
mov dword [esi + 0x2c], 0x15c
call dword [eax + 0x18]
mov edx, 0xe8
mov ecx, esi
call fcn.10146550
mov ebx, dword [edi + 0x190]
lea ecx, [edi + 0x18c]
sub ebx, dword [ecx]
mov eax, dword [esi + 4]
sar ebx, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
test eax, eax
je 0x1011c10b
push 1
push esi
mov ecx, eax
call fcn.1014c610
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push ecx
lea eax, [eax + ebx*4]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.1014cb70
lea eax, [edi + 0x184]
push pe_nt_image_headers32
mov dword [esi + 4], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x170], 1
test ecx, ecx
je 0x1011c189
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test edi, edi
je 0x1011c177
lea edx, [esp + 0x14]
push edx
lea eax, [edi + 0x130]
push ecx
push eax
call fcn.1014a070
mov esi, eax
jmp 0x1011c18b
lea edx, [esp + 0x14]
xor eax, eax
push edx
push ecx
push eax
call fcn.1014a070
mov esi, eax
jmp 0x1011c18b
xor esi, esi
mov dword [esp + 0x170], 0xffffffff
mov dword [esi + 0x2c], 0x15d
mov dword [esi + 0x30], 0x13c1
mov dword [esp + 0x10], 0
mov dword [esp + 0x170], 2
mov ecx, 0xe9
call fcn.10146670
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1011c1d9
push 4
mov edx, ebx
mov ecx, esi
call fcn.10146190
add esp, 4
mov dword [esp + 0x170], 0xffffffff
test ebx, ebx
je 0x1011c1f0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov edx, 0x1397
lea ecx, [esp + 0x1c]
call fcn.10145cd0
mov dword [esp + 0x170], 3
lea ecx, [esi + 0xdc]
cmp ecx, eax
je 0x1011c21d
push 0xffffffffffffffff
push 0
push eax
call fcn.100cd9d0
mov byte [esi + 0xb9], 1
mov dword [esp + 0x170], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x1011c243
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [edi + 0x190]
lea ecx, [edi + 0x18c]
sub ebx, dword [ecx]
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, dword [esi + 4]
sar ebx, 2
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
test eax, eax
je 0x1011c288
push 1
push esi
mov ecx, eax
call fcn.1014c610
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push ecx
lea eax, [eax + ebx*4]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1014cb70
lea eax, [edi + 0x184]
push pe_nt_image_headers32
mov dword [esi + 4], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x170], 4
test ecx, ecx
je 0x1011c306
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test edi, edi
je 0x1011c2f4
lea edx, [esp + 0x14]
push edx
lea eax, [edi + 0x130]
push ecx
push eax
call fcn.1014a070
mov esi, eax
jmp 0x1011c308
lea edx, [esp + 0x14]
xor eax, eax
push edx
push ecx
push eax
call fcn.1014a070
mov esi, eax
jmp 0x1011c308
xor esi, esi
mov dword [esp + 0x170], 0xffffffff
mov dword [esi + 0x2c], 0x15e
mov dword [esi + 0x30], 0x13c2
mov dword [esp + 0x10], 0
mov dword [esp + 0x170], 5
mov ecx, 0xea
call fcn.10146670
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1011c356
push 4
mov edx, ebx
mov ecx, esi
call fcn.10146190
add esp, 4
mov dword [esp + 0x170], 0xffffffff
test ebx, ebx
je 0x1011c36d
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov edx, 0x1398
lea ecx, [esp + 0x1c]
call fcn.10145cd0
mov dword [esp + 0x170], 6
lea ecx, [esi + 0xdc]
cmp ecx, eax
je 0x1011c39a
push 0xffffffffffffffff
push 0
push eax
call fcn.100cd9d0
mov byte [esi + 0xb9], 1
mov dword [esp + 0x170], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x1011c3c0
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [edi + 0x190]
lea ecx, [edi + 0x18c]
sub ebx, dword [ecx]
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, dword [esi + 4]
sar ebx, 2
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
test eax, eax
je 0x1011c405
push 1
push esi
mov ecx, eax
call fcn.1014c610
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push ecx
lea eax, [eax + ebx*4]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1014cb70
lea eax, [edi + 0x184]
mov dword [esi + 4], eax
call fcn.100e9040
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x60
push dword [eax]
push 0x12
call ebx
mov esi, eax
call fcn.100e9040
push 0x60
push dword [eax + 4]
push 0x8d
call ebx
push 0x110
mov dword [esp + 0x40], eax
lea eax, [esp + 0x4c]
push 0
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x114
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1011c499
cmp dword [esp + 0x48], 6
setae al
test al, al
jne 0x1011c4a1
mov dword [esp + 0x40], 0x11
cmp dword [edi + 4], 0
mov dword [edi + 0x180], 0x333333
mov dword [edi + 0x17c], 0x999999
jne 0x1011c4bf
xor ebx, ebx
jmp 0x1011c4d7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov ecx, eax
test ecx, ecx
jne 0x1011c4d0
xor ebx, ebx
jmp 0x1011c4d7
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, eax
mov ecx, dword [str.Edit]
lea eax, [edi + 0x158]
test ecx, ecx
mov edx, str.EDIT
push eax
cmovne edx, ecx
mov ecx, 0x105e0bec
mov dword [str.Edit], edx
mov edx, 0x105dadc8
call fcn.10100490
movzx eax, ax
lea ecx, [edi + 0x138]
push eax
push 0x138b
push 0
push 0x50000080
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.101003c0
call fcn.100e9040
push 0x60
push dword [eax]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
call fcn.1018f7a0
mov ecx, dword [edi + 0x134]
mov esi, eax
test ecx, ecx
je 0x1011c555
cmp ecx, esi
je 0x1011c555
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push esi
mov dword [edi + 0x134], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x30
push dword [edi + 0x13c]
call esi
push 0
push 0x200
push 0xc5
push dword [edi + 0x13c]
call esi
mov dword [edi + 0x188], edi
mov al, 1
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret