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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov edi, dword [esi + 0x13ec]
mov eax, dword [esi + 0x13e0]
mov ecx, dword [esi + 0x13dc]
add eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x13e0]
push eax
push ecx
mov ecx, esi
call fcn.00402370
mov edx, dword [esi + 0x13e8]
push 1
fstp dword [esp + 0x24]
push edi
push edx
mov ecx, esi
call fcn.00402370
fadd dword [esp + 0x20]
mov eax, dword [esi + 0x13ec]
mov ecx, dword [esi + 0x13e8]
push 1
push eax
fmul dword [0x414484]
push ecx
mov ecx, esi
fstp dword [esp + 0x38]
call fcn.00402320
mov edx, dword [esi + 0x13e0]
mov eax, dword [esi + 0x13dc]
fstp dword [esp + 0x20]
push 1
push edx
push eax
mov ecx, esi
call fcn.00402320
fadd dword [esp + 0x20]
mov edx, dword [esi + 0x13e0]
mov ecx, dword [esi + 0x13dc]
mov eax, edx
push 1
fmul dword [0x414484]
push eax
lea edi, [edx + ecx*8]
push ecx
mov ecx, esi
fstp dword [esp + 0x3c]
call fcn.00402320
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 0x13e0]
push eax
mov eax, dword [esi + 0x13dc]
push 1
push edx
push eax
mov ecx, esi
call fcn.00402370
call sub.MSVCRT.dll__ftol
mov ecx, edi
push eax
shl ecx, 6
mov edx, dword [ecx + esi + 0x64]
mov ecx, dword [esi + edi*4 + 0x29ab0]
push edx
call fcn.00410440
mov eax, dword [esi + 0x13dc]
mov ecx, dword [esi + 0x13e0]
mov ebx, dword [sym.imp.ui.dll_public:_void___thiscall_uiWidget::activate_bool__bool_]
push 1
lea edx, [ecx + eax*8]
push 1
mov ecx, dword [esi + edx*4 + 0x29ab0]
call ebx
mov eax, dword [esi + 0x13e8]
mov ecx, dword [esi + 0x13ec]
push 1
mov edx, ecx
lea edi, [ecx + eax*8]
push edx
push eax
mov ecx, esi
call fcn.00402320
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x13ec]
mov edx, dword [esi + 0x13e8]
push eax
push 1
push ecx
push edx
mov ecx, esi
call fcn.00402370
call sub.MSVCRT.dll__ftol
push eax
mov eax, edi
shl eax, 6
mov ecx, dword [eax + esi + 0x64]
push ecx
mov ecx, dword [esi + edi*4 + 0x29ab0]
call fcn.00410440
mov edx, dword [esi + 0x13e8]
mov eax, dword [esi + 0x13ec]
push 1
push 1
lea ecx, [eax + edx*8]
mov ecx, dword [esi + ecx*4 + 0x29ab0]
call ebx
mov edx, dword [esi + 0x13dc]
mov eax, dword [esi + 0x13e0]
lea ecx, [eax + edx*8]
mov eax, 5
shl ecx, 6
mov dword [ecx + esi + 0x78], eax
mov edx, dword [esi + 0x13e8]
mov ecx, dword [esi + 0x13ec]
lea edx, [ecx + edx*8]
lea ecx, [esi + 0xe78]
shl edx, 6
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [edx + esi + 0x78], eax
lea eax, [esi + 0x29a90]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
mov ebp, 7
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x4061f9
cmp dword [ecx], 5
jne 0x4061f9
mov edx, dword [esp + 0x10]
mov edi, ebp
inc edx
test ebp, ebp
mov dword [esp + 0x10], edx
jl 0x4061f9
mov eax, ecx
cmp dword [eax], 9
je 0x4061cd
dec edi
sub eax, 0x200
test edi, edi
jge 0x4061bc
jmp 0x4061f9
push ebx
push ebp
push ebx
push edi
mov ecx, esi
call fcn.00401b70
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea edx, [ebx + edi*8]
shl edx, 6
dec eax
mov dword [ecx], 1
mov dword [edx + esi + 0x78], 5
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x14]
dec ebp
sub edi, 0x20
sub ecx, 0x200
test ebp, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
jge 0x40619d
mov eax, dword [esp + 0x10]
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40625b
lea eax, [ebx + ecx*8]
lea edi, [esi + eax*4 + 0x299b0]
shl eax, 6
inc ecx
lea ebp, [eax + esi + 0x64]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi]
push 1
push 0
mov dword [ebp], 0x27
call dword [sym.imp.ui.dll_public:_void___thiscall_uiWidget::activate_bool__bool_]
mov eax, dword [esp + 0x18]
sub edi, 0x20
sub ebp, 0x200
dec eax
mov dword [esp + 0x18], eax
jne 0x406234
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc ebx
add edi, 4
add ecx, 0x40
cmp ebx, 8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
jl 0x406184
mov eax, dword [esp + 0x24]
push ecx
cdq
sub eax, edx
mov ecx, esi
sar eax, 1
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fstp dword [esp]
push str.match
call fcn.00403f00
xor edi, edi
cmp eax, edi
je 0x4062dc
mov edx, dword [esi + 0x13ac]
mov ecx, dword [esi + 0x13a8]
cmp edx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jl 0x4062dc
jg 0x4062c1
cmp ecx, 1
jb 0x4062dc
fild qword [esp + 0x24]
mov edx, dword [eax]
push ecx
mov ecx, eax
fmul dword [0x41447c]
fadd dword [0x414404]
fstp dword [esp]
call dword [edx + 0x34]
mov ecx, dword [esi + 0x13a8]
mov eax, dword [esi + 0x13ac]
mov ebp, dword [esi + 0x13b0]
add ecx, 1
adc eax, edi
inc ebp
mov dword [esi + 0x13ac], eax
mov eax, ebp
mov dword [esi + 0x13a8], ecx
mov ecx, dword [esi + 0x29bb8]
push eax
mov byte [esi + 0x1059], 0
mov dword [esi + 0x13b0], ebp
call fcn.0040fcb0
push edi
push 1
push edi
push 0x3e8
mov ecx, esi
call fcn.004073a0
mov ecx, dword [esp + 0x2c]
push edi
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.00407430
cmp dword [esi + 0x13b0], 0x1e
jl 0x40637d
push edi
push 1
push edi
push 0x186a0
mov ecx, esi
mov dword [esi + 0x13a8], edi
mov dword [esi + 0x13ac], edi
call fcn.004073a0
push edx
push eax
mov ecx, esi
call fcn.00407b10
push 0xd
mov ecx, esi
call fcn.004010c0
mov ecx, esi
call fcn.00406790
mov byte [esi + 0x13e4], 0
mov byte [esi + 0x13d8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret