Function at 0x401130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4218f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42acb8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call fcn.004038bf
push ebx
call fcn.00401460
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x1c], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4011cf
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x4011cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e637
mov edx, dword [esp + 0x14]
push 0
mov dword [ebx + 0xa8], edx
call edi
push 0x425608
push 0x42582c
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4013a2
call fcn.00405132
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401210
push 0x80004005
call fcn.00402ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 0
call fcn.00405132
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401242
push 0x80004005
call fcn.00402ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x1f4
mov byte [esp + 0x34], 1
call fcn.0040473c
test eax, eax
je 0x401278
push 0x1f4
push eax
lea ecx, [esp + 0x1c]
call fcn.004030b0
mov edi, dword [esp + 0x14]
test eax, eax
push 0x1f5
setne bl
call fcn.0040473c
test eax, eax
je 0x40129e
push 0x1f5
push eax
lea ecx, [esp + 0x20]
call fcn.004030b0
mov esi, dword [esp + 0x18]
test eax, eax
setne cl
and bl, cl
mov ebx, dword [esp + 0x10]
je 0x401329
mov edx, dword [ebx]
mov eax, dword [edx + 0x74]
mov ecx, ebx
call eax
test eax, eax
je 0x4012bb
mov eax, dword [eax + 0x20]
push 4
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x401329
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x30], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40138d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00401ed0
test eax, eax
jne 0x4012cb
push ebx
call fcn.00401e80
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
jne 0x4012d9
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40135e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401382
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.00401f60
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00401ed0
test eax, eax
je 0x401386
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret