Function at 0x405a90
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x525b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov eax, dword [esp + 0x154]
mov esi, ecx
mov ebx, dword [esi + 0x570]
xor ebp, ebp
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x14], eax
jle 0x405aff
mov ecx, dword [esi + 0x56c]
mov eax, dword [ecx + edi*4]
push eax
call fcn.004fc79f
add edi, 1
add esp, 4
cmp edi, ebx
jl 0x405ae6
mov eax, dword [esi + 0x56c]
cmp eax, ebp
je 0x405b1b
mov edx, dword [esi + 0x584]
push eax
call edx
add esp, 4
mov dword [esi + 0x56c], ebp
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x570], ebp
mov dword [esi + 0x574], ebp
mov eax, dword [esi + 0x6ac]
xor edi, edi
cmp eax, ebp
je 0x405b84
cmp dword [esi + 0x6b4], ebp
push ebp
je 0x405b57
push ebp
push 0xbbf
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x6b4], ebp
jmp 0x405b74
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffffffffffffffeb
push eax
call edi
mov eax, dword [esi + 0x6b0]
mov ecx, dword [esi + 0x6ac]
push eax
push 0xfffffffffffffffc
push ecx
call edi
mov edx, dword [esi + 0x6ac]
mov edi, 1
push edi
push ebp
push edx
call ebx
cmp edi, ebp
mov dword [esi + 0x6ac], ebp
mov dword [esi + 0x6b0], ebp
je 0x405bb0
mov eax, dword [esi + 0x1e0]
mov ecx, dword [esi + 0x550]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push 1
push ebp
call eax
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046a770
lea eax, [esp + 0x18]
mov dword [esp + 0x14c], ebp
call fcn.0046ac20
cmp dword [esp + 0x1c], ebp
mov ebx, esi
jne 0x405be1
push ebp
call fcn.00406090
jmp 0x405ce2
push 1
call fcn.00406090
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
push 0x4b8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov ebx, eax
push 0x184
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [esi + 0x554]
xor edi, edi
test ebp, ebp
jle 0x405c31
jmp 0x405c20
mov eax, dword [esp + 0x14]
push eax
call fcn.00405de0
add edi, 1
cmp edi, ebp
jl 0x405c20
mov ebp, dword [esi + 0x570]
xor edi, edi
test ebp, ebp
mov byte [esi + 0x5a4], 0
jle 0x405c68
mov ecx, dword [esi + 0x56c]
mov edx, dword [ecx + edi*4]
add edx, 8
push edx
push 0
push 0x180
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
add edi, 1
cmp edi, ebp
jl 0x405c44
test ebp, ebp
jne 0x405c7f
push 0x54bc30
push 0
push 0x180
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x405ce2
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x54bc40
push 0
push 0x180
push ebx
call edi
push 0x54bc30
push 0
push 0x180
push ebx
call edi
mov eax, dword [esi + 0x6dc]
push 0
push eax
mov dword [esi + 0x6e0], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x405ce2
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push 0x402580
push 0
push 0
call fcn.004fdfac
add esp, 0x18
mov dword [esi + 0x6dc], eax
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], vtable.t_str.0
jne 0x405d09
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x405d09
push eax
call fcn.004fdda1
add esp, 4
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004fe05a
add esp, 0x13c
ret 4