Function at 0x5c5200
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x18], edi
cmp dword [edi], 1
jl 0x5c521d
call fcn.005b3940
cmp dword [edi], eax
jle 0x5c5227
call fcn.005b3880
mov eax, dword [eax + 0x28]
mov dword [edi], eax
mov ecx, dword [edi]
mov dword [0xa255c0], ecx
call fcn.005b39a0
mov esi, eax
test esi, esi
jne 0x5c5241
call fcn.005b3880
mov esi, eax
call fcn.00730cb0
test al, al
jne 0x5c5253
call fcn.00730ce0
test al, al
je 0x5c5283
test esi, esi
je 0x5c5283
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test al, al
je 0x5c5283
call fcn.005b3880
mov eax, dword [eax + 0x28]
mov dword [edi], eax
mov ecx, eax
mov dword [0xa255c0], eax
call fcn.005b39a0
test eax, eax
jne 0x5c5281
call fcn.005b3880
mov esi, eax
mov eax, dword [esi + 0x28]
mov dword [edi], eax
mov ecx, dword [esi + 0x28]
mov dword [0xa255c0], ecx
mov eax, dword [edi + 4]
test eax, eax
jl 0x5c52a0
cmp eax, dword [0xa25bf8]
jl 0x5c52a7
mov dword [edi + 4], 0
mov ecx, dword [edi + 4]
call fcn.005c1a80
test al, al
je 0x5c52b8
mov eax, dword [edi + 4]
jmp 0x5c52ba
xor eax, eax
mov edx, dword [0xa25bec]
mov dword [0xa255c4], eax
mov ecx, esi
mov eax, dword [edx + eax*4]
push eax
call fcn.005b3de0
test al, al
jne 0x5c530b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x5c52fc
call fcn.005b3880
mov esi, eax
mov ecx, dword [esi + 0x28]
mov dword [edi], ecx
mov edx, dword [esi + 0x28]
mov dword [0xa255c0], edx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov dword [edi + 4], eax
mov ecx, eax
mov dword [0xa255c4], eax
call fcn.005c1a80
mov ecx, dword [0xa255c4]
mov dword [0xa255ac], esi
call fcn.005c1a80
mov ecx, dword [0xa255ac]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [0xa255ac]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
mov dword [esp + 0x1c], 8
call fcn.00730cb0
test al, al
je 0x5c537a
cmp dword [0xa255a8], 4
jne 0x5c537a
call fcn.00730cb0
test al, al
je 0x5c5371
call fcn.00730ce0
test al, al
mov eax, 2
je 0x5c5376
mov eax, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x5c5391
mov esi, 0x411
jmp 0x5c53ee
cmp ebp, 1
jne 0x5c539d
mov esi, 0x412
jmp 0x5c53ee
cmp ebp, 2
jne 0x5c53a9
mov esi, 0x413
jmp 0x5c53ee
cmp ebp, 3
jne 0x5c53b5
mov esi, 0x414
jmp 0x5c53ee
cmp ebp, 4
jne 0x5c53c1
mov esi, 0x415
jmp 0x5c53ee
cmp ebp, 5
jne 0x5c53cd
mov esi, 0x416
jmp 0x5c53ee
cmp ebp, 6
jne 0x5c53d9
mov esi, 0x417
jmp 0x5c53ee
mov esi, ebp
sub esi, 7
neg esi
sbb esi, esi
and esi, 0xfffffbe7
add esi, 0x418
mov edx, dword [esp + 0x18]
lea ecx, [ebp + ebp*2]
mov edi, dword [edx + ecx*4 + 0x1c]
lea eax, [edx + ecx*4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edi
call fcn.00730cb0
test al, al
je 0x5c5426
cmp edi, 4
je 0x5c541d
cmp edi, 5
je 0x5c541d
cmp edi, 6
jne 0x5c5426
mov edi, 2
mov dword [esp + 0x14], edi
cmp ebp, dword [esp + 0x1c]
jle 0x5c543c
mov ebp, dword [0xa5a880]
mov dword [esp + 0x14], 3
jmp 0x5c5483
cmp edi, 2
jne 0x5c5449
mov ebp, dword [0xa5a87c]
jmp 0x5c5483
cmp edi, 3
jne 0x5c5456
mov ebp, dword [0xa5a880]
jmp 0x5c5483
cmp edi, 4
jne 0x5c5463
mov ebp, dword [0xa5a884]
jmp 0x5c5483
cmp edi, 5
jne 0x5c5470
mov ebp, dword [0xa5a888]
jmp 0x5c5483
mov ecx, dword [0xa5a88c]
xor eax, eax
cmp edi, 6
setne al
dec eax
and eax, ecx
mov ebp, eax
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x146
push esi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor edi, edi
test eax, eax
mov dword [esp + 0x20], eax
jle 0x5c54e2
push 0
push edi
push 0x150
push esi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, ebp
je 0x5c54d2
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x5c54b3
jmp 0x5c54e2
push 0
push edi
push 0x14e
push esi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esp + 0x24]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, esi
mov ecx, ebx
push 0
push ebp
call fcn.005c4be0
mov ecx, dword [esp + 0x10]
call fcn.004d0c20
mov ecx, dword [esp + 0x10]
mov edi, eax
call fcn.004d13e0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x5c564e
cmp eax, 3
je 0x5c564e
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov eax, dword [edx + 0x20]
mov edx, edi
push eax
call fcn.004d11c0
mov edx, edi
mov ecx, ebx
push 0xffffffffffffffff
call fcn.004d13a0
mov ecx, edi
mov ebp, eax
call fcn.004d0c80
cmp eax, dword [0xa27da0]
jne 0x5c5571
push 0
push ebp
mov ecx, 0xa255a8
call fcn.00668b50
mov ecx, dword [0xa27d8c]
push ebp
mov ecx, dword [ecx]
call fcn.00664d70
jmp 0x5c5578
mov dword [eax*4 + 0xa2560c], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea edx, [ebp + ebp*2 + 9]
mov ecx, dword [eax + edx*4]
mov edx, esi
push ecx
mov ecx, ebx
call fcn.004d1a60
mov edx, esi
mov ecx, ebx
push 0xffffffffffffffff
call fcn.004d1e80
mov ecx, esi
mov edi, eax
call fcn.004d1440
cmp eax, dword [0xa27da0]
jne 0x5c5645
mov edx, esi
mov ecx, ebx
call fcn.004d1cb0
cmp edi, 0xfffffffe
je 0x5c5628
mov esi, 0xa27da4
mov ecx, dword [esi]
test ecx, ecx
je 0x5c5603
cmp ecx, dword [0xa5a87c]
je 0x5c5603
cmp ecx, dword [0xa5a880]
je 0x5c5603
cmp ecx, dword [0xa5a890]
je 0x5c5603
cmp ecx, dword [0xa5a884]
je 0x5c5603
cmp ecx, dword [0xa5a888]
je 0x5c5603
cmp ecx, dword [0xa5a88c]
je 0x5c5603
call fcn.00664d40
cmp eax, edi
je 0x5c5623
add esi, 4
cmp esi, 0xa27dc4
jl 0x5c55c4
mov eax, 0xa2562c
cmp dword [eax], edi
je 0x5c5623
add eax, 4
cmp eax, 0xa2564c
jl 0x5c5613
jmp 0x5c5628
mov edi, 0xfffffffe
push 0
push edi
mov ecx, 0xa255a8
call fcn.00668c00
mov edx, dword [0xa27d8c]
push edi
mov ecx, dword [edx]
call fcn.00664da0
jmp 0x5c5694
mov dword [eax*4 + 0xa2562c], edi
jmp 0x5c5694
mov ecx, dword [0xa255ac]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edx, edi
mov ecx, ebx
push eax
call fcn.004d11c0
mov edx, esi
mov ecx, ebx
push 0xfffffffffffffffe
call fcn.004d1a60
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push ebx
call ebp
mov edi, eax
push esi
push ebx
call ebp
mov esi, eax
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
call edi
push 0
push esi
call edi
mov ebp, dword [esp + 0x10]
inc ebp
cmp ebp, 8
mov dword [esp + 0x10], ebp
jl 0x5c5382
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov ecx, dword [eax + 8]
pop ebx
mov dword [0xa255d8], ecx
mov edx, dword [eax + 0xc]
mov dword [0xa255cc], edx
mov ecx, dword [eax + 0x10]
mov dword [0xa255e0], ecx
mov dl, byte [eax + 0x14]
mov byte [0xa255d2], dl
mov cl, byte [eax + 0x15]
mov byte [0xa255d3], cl
mov dl, byte [eax + 0x16]
mov byte [0xa255d4], dl
mov cl, byte [eax + 0x17]
mov byte [0xa25650], cl
mov dl, byte [eax + 0x18]
mov byte [0xa255d1], dl
add esp, 0x1c
ret