Function at 0x406c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448acf
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4690f0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4690f0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x46c54c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
test al, 1
jne 0x406d0c
or eax, 1
mov dword [0x46c54c], eax
push ecx
push 0x4595e8
push 7
mov dword [esp + 0xdc], ebx
push ecx
mov ecx, 0x46c400
mov dword [0x46c400], ebx
mov dword [0x46c404], ebx
call fcn.00418740
push 0x44e610
call fcn.0042fb26
add esp, 4
push 0
push dword [edi + 8]
push 0x84
push dword [edi + 4]
push 0x19
push 0x4b
push 0x46
push 0x14
push 0x40000000
push 0x4584bc
push dword [0x46c404]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x30], eax
lea eax, [esp + 0x44]
push eax
push 0x5c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x60]
push eax
movzx eax, byte [esp + 0x63]
push eax
movzx eax, byte [esp + 0x66]
push eax
movzx eax, byte [esp + 0x69]
push eax
movzx eax, byte [esp + 0x6c]
push eax
movzx eax, byte [esp + 0x6f]
push eax
movzx eax, byte [esp + 0x72]
push eax
movzx eax, byte [esp + 0x75]
push eax
movzx eax, byte [esp + 0x78]
push eax
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
call dword [sym.imp.GDI32.dll_CreateFontW]
push 1
push eax
push 0x30
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov dword [edi + 0x4c], 5
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], ax
mov dword [esp + 0xd0], 1
mov ecx, dword [edi + 0x2c]
mov al, byte [ecx + 4]
test al, al
je 0x406e0f
lea eax, [esp + 0x1c]
push eax
call fcn.00403c50
cmp dword [eax + 0x10], 0
mov ebx, 1
mov byte [esp + 0x17], bl
ja 0x406e14
mov byte [esp + 0x17], 0
test bl, 1
je 0x406e2c
cmp dword [esp + 0x30], 8
jb 0x406e2c
push dword [esp + 0x1c]
call fcn.0042f2d8
add esp, 4
sub esp, 0x18
cmp byte [esp + 0x2f], 0
je 0x406e41
mov ecx, dword [edi + 0x2c]
push esp
call fcn.00403c50
jmp 0x406e63
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x46c0b0
mov word [ecx], ax
call fcn.00401830
lea ecx, [esp + 0x34]
call fcn.00401fa0
mov esi, eax
lea eax, [esp + 0xc0]
add esp, 0x18
cmp eax, esi
je 0x406ebe
cmp dword [esp + 0xbc], 8
jb 0x406e95
push dword [esp + 0xa8]
call fcn.0042f2d8
add esp, 4
xor eax, eax
push esi
lea ecx, [esp + 0xac]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], eax
mov word [esp + 0xac], ax
call fcn.00402530
cmp dword [esp + 0x30], 8
jb 0x406ed1
push dword [esp + 0x1c]
call fcn.0042f2d8
add esp, 4
cmp dword [esp + 0xbc], 8
lea eax, [esp + 0xa8]
cmovae eax, dword [esp + 0xa8]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 0x2c]
xor ecx, ecx
mov al, byte [eax + 4]
test al, al
setne cl
lea eax, [esp + 0x34]
push eax
push dword [edi + 4]
mov dword [edi + 0x3c], 0x19
mov dword [edi + 0x40], 0x2d
mov dword [edi + 0x44], 0x19
add ecx, 2
add ecx, dword [edi + 0x4c]
mov dword [edi + 0x48], 0x19
mov dword [edi + 0x50], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push dword [edi + 8]
xor eax, eax
push 0
push dword [edi + 4]
push 0x19
push 0x15e
push dword [edi + 0x40]
push dword [edi + 0x3c]
push 0x50000000
sub esp, 0x18
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4584bc
mov word [ecx], ax
call fcn.004015d0
xor edx, edx
lea ecx, [esp + 0x58]
call fcn.004020d0
add esp, 0x18
mov esi, eax
mov byte [esp + 0xf4], 2
cmp dword [esi + 0x14], 8
jb 0x406f91
mov esi, dword [esi]
mov eax, dword [0x46c408]
test al, 1
jne 0x406fde
or eax, 1
mov dword [0x46c408], eax
push ecx
push str.__:_28
push 7
mov byte [esp + 0x100], 3
push ecx
mov ecx, 0x46c3cc
mov dword [0x46c3cc], 0
mov dword [0x46c3d0], 0
call fcn.00418740
push 0x44e630
call fcn.0042fb26
add esp, 4
push esi
push dword [0x46c3d0]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
call esi
cmp dword [esp + 0x30], 8
mov dword [edi + 0x38], eax
jb 0x407005
push dword [esp + 0x1c]
call fcn.0042f2d8
add esp, 4
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 0x3c]
push 0
push dword [edi + 8]
add eax, eax
push 0
push dword [edi + 4]
sub ecx, eax
sub ecx, dword [esp + 0x44]
push 0xf
push ecx
push dword [edi + 0x48]
push dword [edi + 0x44]
push 0x50000001
push 0
push str.msctls_progress32
push 0
call esi
movzx ecx, word [edi + 0x50]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
shl ecx, 0x10
push ecx
push 0
push 0x401
push eax
mov dword [edi + 0x34], eax
call ebx
push 0
push 1
push 0x404
push dword [edi + 0x34]
call ebx
push 0
push 1
push 0x402
push dword [edi + 0x34]
call ebx
inc dword [edi + 0x54]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push 1
mov esi, eax
push esi
push 0x30
push dword [edi + 0x38]
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0xbc], 8
jb 0x4070a5
push dword [esp + 0xa8]
call fcn.0042f2d8
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret