Function at 0x421320
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54699a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5ec938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
je 0x421361
cmp dword [esi + 0xe888], 1
je 0x421445
mov eax, dword [esi + 0x130]
cmp eax, ebx
jne 0x42142d
push 0x184
call fcn.0042c875
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x421390
push ebx
mov ecx, eax
call fcn.00423ca0
jmp 0x421392
xor eax, eax
mov dword [esi + 0x130], eax
mov edx, dword [eax]
push ebx
mov ecx, eax
mov eax, dword [edx + 0x160]
push 0x6b
mov dword [ebp - 4], 0xffffffff
call eax
mov ecx, dword [esi + 0x130]
push 5
call fcn.004347fe
mov eax, dword [esi + 0x130]
cmp eax, ebx
jne 0x4213c9
xor eax, eax
jmp 0x4213cc
mov eax, dword [eax + 0x20]
push 5
push 0x404
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x130]
cmp ecx, ebx
jne 0x4213ef
xor eax, eax
jmp 0x4213f2
mov eax, dword [ecx + 0x20]
push ebx
mov dword [esi + 0xe8a4], eax
call fcn.00423c40
mov eax, dword [esi + 0x130]
cmp eax, ebx
jne 0x42141a
push ebx
push ebx
xor eax, eax
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421445
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421445
mov eax, dword [eax + 0x20]
push 5
push 0x404
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x18]
push ecx
push ebx
push esi
push 0x41fdc0
push ebx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x4214a6
mov ecx, dword [esi + 0x130]
cmp ecx, ebx
je 0x42148f
push ebx
call fcn.004347fe
mov ecx, dword [esi + 0x130]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
lea esp, [esp]
mov eax, dword [esi + 0x130]
test eax, eax
je 0x42150a
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42150a
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x42150a
mov eax, dword [esi + 0x130]
test eax, eax
je 0x4214eb
mov eax, dword [eax + 0x20]
lea edx, [ebp - 0x40]
push edx
push eax
call ebx
test eax, eax
jne 0x42150a
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea edx, [ebp - 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x421528
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4214b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x421579
cmp eax, 0xbc2
je 0x421579
push 0xa
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
lea ecx, [esi + 0x148]
call fcn.0040b5f0
push 0
call fcn.00416b60
add esp, 0xc
push 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ecx
lea ecx, [esi + 0x148]
call fcn.0040b5f0
push 0
call fcn.00416b60
add esp, 0xc
mov ecx, dword [esi + 0x130]
test ecx, ecx
je 0x421597
push 0
call fcn.004347fe
mov ecx, dword [esi + 0x130]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret