Function at 0x401600
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x422aca
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42cae4]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
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, esi
call fcn.00403e82
cmp dword [0x42fd84], 6
jl 0x4016b9
mov ecx, dword [0x42fd88]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.004010f0
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x401695
push 0x426b7c
push ecx
call fcn.00410135
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x401695
sub eax, ecx
mov edi, eax
jns 0x4016cf
mov dword [esp + 0x4c], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push edi
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401930
mov byte [esp + 0x4c], 1
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0040456f
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401714
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x68]
push ecx
call fcn.0040fe8a
add esp, 4
inc edi
push edi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401900
mov eax, dword [eax]
push eax
call fcn.0040ff18
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40175e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x268
call fcn.004031c4
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x4c], 2
test eax, eax
je 0x401795
mov ecx, dword [0x42fd88]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 4]
push edx
mov edx, dword [ecx + 0xc]
push edx
mov edx, dword [ecx + 8]
push edx
push eax
call fcn.00401b30
jmp 0x401797
xor eax, eax
mov byte [esp + 0x4c], 0
push 0
mov dword [esi + 0xa4], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
add edi, 0xfffffede
add ebp, 0xffffff7e
call fcn.0040a345
mov eax, dword [eax + 8]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
push 0xb
call fcn.0040958b
test eax, eax
jne 0x4017fb
xor ecx, ecx
jmp 0x401809
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401800
sub ecx, ebx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401420
mov ecx, dword [esi + 0xa4]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push 0x90880000
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
push str.Update_...
add edi, 0x10e
add ebp, 0x6e
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0x58]
push eax
push 0x80
call edx
test eax, eax
jne 0x40188e
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x401870
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [esi + 0xa4], 0
add eax, 0xfffffff0
jmp 0x4016a0
mov eax, dword [esi + 0xa4]
push 0
push 0
push eax
push 0x4020f0
push 0
push 0
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4018b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret