Function at 0x5c7fb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0xac]
call fcn.0005cbf1
lea eax, [ebp - 0xac]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
or eax, eax
je 0x5cba4
lea ecx, [ebp - 0x60]
call fcn.00056a3b
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0x60]
mov eax, dword [eax + 0x18]
push dword [eax + 0x10]
call fcn.00056f13
mov dword [ebp - 0x54], 1
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x6c]
lea ecx, [ebp - 0x78]
call fcn.000543b6
mov dword [ebp - 0x78], 0x1b0210
push esi
push 0x7802
lea ecx, [ebp - 0x78]
call fcn.00054501
mov dword [0x1b020c], 0
mov eax, dword [esi + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x20]
call fcn.00057713
push dword [ebp - 0x20]
push 0xc9
push dword [ebp - 0x74]
call sub.USER32.dll_SetDlgItemTextA
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
push dword [eax + 0xc]
call sub.KERNEL32.dll_GlobalLock
movzx ecx, word [eax + 2]
add ecx, eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.000577bf
push dword [ebp - 0x50]
push 0xca
push dword [ebp - 0x74]
call sub.USER32.dll_SetDlgItemTextA
lea ecx, [ebp - 0x50]
call fcn.000577b7
lea ecx, [ebp - 0x2c]
call fcn.000576d4
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
push dword [eax + 0xc]
call sub.KERNEL32.dll_GlobalLock
movzx ecx, word [eax + 4]
add ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.000577bf
push dword [ebp - 0x44]
push 0xf040
lea eax, [ebp - 0x2c]
push eax
call fcn.000585ac
lea ecx, [ebp - 0x44]
call fcn.000577b7
push dword [ebp - 0x2c]
push 0xcb
push dword [ebp - 0x74]
call sub.USER32.dll_SetDlgItemTextA
push 5
push dword [ebp - 0x74]
call sub.USER32.dll_ShowWindow
push 0x5c6c0
lea ecx, [ebp - 0x60]
call fcn.00056fb9
cmp dword [ebp - 0x1c], 0x1f
jle 0x5c955
push 0x1f
lea ecx, [ebp - 0x20]
call fcn.00057a11
mov dword [ebp - 0x38], 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.00056f95
cmp eax, 0xffffffff
jne 0x5c98d
push 0xffffffffffffffff
push 0
push 0xf106
call fcn.000582da
jmp 0x5cb84
mov eax, dword [0x1afc40]
push 0
mov eax, dword [eax + 0x14]
push dword [eax + 4]
call sub.USER32.dll_EnableWindow
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx edi, word [eax + 0x1a]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx ecx, word [eax + 0x18]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 0x1c]
cmp eax, edi
jbe 0x5c9d7
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx edi, word [eax + 0x1c]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 0x1e]
cmp eax, edi
jae 0x5c9f5
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx edi, word [eax + 0x1e]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 0x1c]
cmp eax, ecx
jbe 0x5ca13
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx ecx, word [eax + 0x1c]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 0x1e]
cmp eax, ecx
jae 0x5ca31
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x18]
movzx ecx, word [eax + 0x1e]
mov ebx, 1
cmp edi, ecx
jae 0x5ca3f
mov ebx, 0xffffffff
cmp edi, 0xffff
jne 0x5ca4e
mov edi, 0xffff
jmp 0x5ca50
add edi, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0xa0], ecx
cmp edi, dword [ebp - 0xa0]
je 0x5cb4a
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x64]
cmp dword [ebp - 0xa4], 0
je 0x5cb4a
push 0xa
push dword [ebp - 0x58]
call sub.GDI32.dll_GetDeviceCaps
mov dword [ebp - 8], eax
push 8
push dword [ebp - 0x58]
call sub.GDI32.dll_GetDeviceCaps
push dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call sub.USER32.dll_SetRect
push 2
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x58]
call sub.GDI32.dll_DPtoLP
lea ecx, [ebp - 0x14]
call fcn.000576d4
push 0xf043
lea ecx, [ebp - 0x14]
call fcn.00057a95
push dword [ebp - 0xa0]
push dword [ebp - 0x14]
lea eax, [ebp - 0xfc]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0xfc]
push eax
push 0xcc
push dword [ebp - 0x74]
call sub.USER32.dll_SetDlgItemTextA
lea ecx, [ebp - 0x60]
call fcn.00056fa7
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
lea ecx, [ebp - 0x60]
call fcn.00056fb0
or eax, eax
jge 0x5cb32
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.000577b7
add dword [ebp - 0xa0], ebx
cmp dword [ebp - 4], 0
je 0x5ca5d
cmp dword [ebp - 4], 0
jne 0x5cb58
lea ecx, [ebp - 0x60]
call fcn.00056fcb
mov eax, dword [0x1afc40]
push 1
mov eax, dword [eax + 0x14]
push dword [eax + 4]
call sub.USER32.dll_EnableWindow
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x74]
lea ecx, [ebp - 0x78]
call fcn.00055db1
lea ecx, [ebp - 0x2c]
call fcn.000577b7
lea ecx, [ebp - 0x20]
call fcn.000577b7
lea ecx, [ebp - 0x78]
call fcn.000544e2
lea ecx, [ebp - 0x60]
call fcn.00056f71
lea ecx, [ebp - 0xac]
call fcn.0005cbd7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret