Function at 0x412510
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4439bb
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x451254]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451254]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
push 0xd
push 0x447ca0
lea esi, [esp + 0x44]
mov byte [ebp + 0x2e], bl
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00401aa0
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x41257f
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x453c2c]
add esi, 0x10
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4540e4]
lea ecx, [esp + 0x1c]
call fcn.00413520
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0x20]
lea esi, [edi + 0x10]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.00413440
lea esi, [ebp + 4]
push esi
call fcn.00411ff0
mov edx, dword [esi]
push 0
push 0xbb8
push 0xfa1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [0x4530c4]
push 0
push 0xc
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0x67
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi]
push 1
push 0x80
push eax
call ebx
mov ecx, dword [0x4530c4]
push 0
push 0x32
mov dword [esp + 0x1c], ecx
call edi
push eax
push 0x31
call edi
mov edx, dword [esp + 0x1c]
push eax
push 1
push 0x67
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
mov eax, dword [esi]
push edi
push 0
push 0x80
push eax
call ebx
call fcn.00411f70
mov ecx, dword [ebp + 0x484]
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x412679
cmp ecx, eax
je 0x412679
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x484], eax
mov ecx, dword [esi]
push 0x3ec
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x484]
push 1
push ecx
push 0x30
push eax
call ebx
mov dword [ebp + 0x464], edi
cmp dword [ebp + 0x480], 8
jb 0x4126b2
mov eax, dword [ebp + 0x46c]
jmp 0x4126b8
lea eax, [ebp + 0x46c]
push edi
push eax
lea ebx, [ebp + 0x34]
push esi
mov edi, ebx
call fcn.00401420
test eax, eax
jne 0x4126eb
mov esi, ebp
call fcn.00412930
cmp dword [esp + 0x54], 8
jb 0x4126e4
mov edx, dword [esp + 0x40]
push edx
call fcn.0042e0ba
add esp, 4
xor eax, eax
jmp 0x4127d8
push 0xb
xor edi, edi
push str.ck_W_vN
lea esi, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
call fcn.00401aa0
mov byte [esp + 0x64], 1
mov eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
lea esi, [edi + 8]
je 0x412751
cmp dword [ebp + 0x480], esi
jb 0x412734
mov eax, dword [ebp + 0x46c]
jmp 0x41273a
lea eax, [ebp + 0x46c]
cmp dword [esp + 0x38], esi
mov ecx, dword [esp + 0x24]
jae 0x412748
lea ecx, [esp + 0x24]
push eax
push ecx
mov eax, ebx
call fcn.00401510
push 0x78
call fcn.0042e189
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x64], 2
je 0x41277a
lea ecx, [ebp + 0x448]
push ecx
mov edi, eax
call fcn.00409ae0
xor edi, edi
jmp 0x41277c
xor eax, eax
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push 0x4130f0
push edi
push edi
mov dword [ebp + 0x30], eax
mov dword [esp + 0x30], edi
call fcn.0042eecd
add esp, 0x18
cmp dword [esp + 0x38], esi
mov dword [ebp + 0x28], eax
jb 0x4127af
mov eax, dword [esp + 0x24]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
jb 0x4127d3
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042e0ba
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0042e4b4
add esp, 0x54
ret 4