Function at 0x1004cb30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1010445c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], esi
jne 0x1004cf14
mov ecx, dword [edi + 0x4c]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x1004cb8b
push 0
push esi
push edx
push dword [ebp - 0x60]
lea eax, [ecx + 0x24]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x70]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov esi, dword [edi + 0x28]
lea ecx, [edi + 0x24]
push 0
push dword [ebp - 0x64]
push edx
push eax
push ebx
push dword [ebp - 0x70]
call fcn.1004c760
mov dword [edi + 0x28], esi
lea ecx, [edi + 0x24]
test eax, eax
jne 0x1004cd4a
cmp ebx, 1
jne 0x1004cbe2
mov ecx, edi
mov dword [edi + 0x40], ebx
call fcn.1004b680
mov ecx, edi
call fcn.1004adb0
mov ecx, edi
call fcn.1004b4d0
mov ecx, edi
call fcn.1004c0f0
push 0
lea ecx, [edi + 4]
call fcn.1004a200
jmp 0x1004cd37
cmp ebx, 2
jne 0x1004cbf3
mov dword [edi + 0x40], 1
jmp 0x1004cd37
cmp ebx, 0x10
jne 0x1004cc0f
push 0
push dword [edi + 4]
mov dword [edi + 0x40], 1
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1004cd37
cmp ebx, 0xf
jne 0x1004cc89
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x54]
push ecx
push eax
mov dword [edi + 0x40], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x5c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1004cc77
push 0xcc0020
push 0
push 0
push dword [eax]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x1004cd37
cmp ebx, 0x14
jne 0x1004cc9a
mov dword [edi + 0x40], 1
jmp 0x1004cd37
cmp ebx, 0x200
jne 0x1004ccca
cmp dword [edi + 0x70], 0
mov dword [edi + 0x40], 1
je 0x1004cd37
push 0x3e8
push dword [edi + 4]
mov dword [edi + 0x70], 0
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x1004cd37
cmp ebx, 0x2a3
jne 0x1004ccfd
cmp dword [edi + 0x70], 0
mov dword [edi + 0x40], 1
jne 0x1004cd37
push 0
push 0x7530
push 0x3e8
push dword [edi + 4]
mov dword [edi + 0x70], 1
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x1004cd37
cmp ebx, 0x113
jne 0x1004cd62
cmp dword [ebp - 0x60], 0x3e8
mov dword [edi + 0x40], 1
jne 0x1004cd37
cmp dword [edi + 0x70], 0
je 0x1004cd30
push 0x3e8
push dword [edi + 4]
mov dword [edi + 0x70], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, edi
call fcn.1004abe0
mov eax, dword [ebp - 0x64]
mov dword [eax], 0
cmp dword [edi + 0x40], 0
je 0x1004ce59
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100751d1
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 0x1401
jne 0x1004cd92
mov esi, dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
mov eax, dword [ecx]
push edx
push esi
push dword [ebp - 0x60]
mov dword [ebp - 0x6c], 1
push ebx
call dword [eax]
cmp dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
je 0x1004ce5c
jmp 0x1004cd4a
cmp ebx, 0x111
jne 0x1004ce59
mov eax, dword [ebp - 0x60]
mov edx, 0x3ea
mov esi, dword [ebp - 0x68]
movzx ecx, ax
shr eax, 0x10
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], eax
cmp dx, cx
jne 0x1004cde4
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 1
push ecx
push esi
push edx
push eax
mov ecx, edi
call fcn.1004ba80
cmp dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
jne 0x1004cd4a
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov edx, 0x3eb
movzx eax, ax
mov dword [ebp - 0x74], eax
cmp dx, cx
jne 0x1004ce54
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 1
push ecx
push esi
push edx
push eax
mov ecx, edi
call fcn.1004bd40
cmp dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
mov eax, dword [ebp - 0x74]
movzx eax, ax
jne 0x1004cd4a
mov ecx, dword [ebp - 0x70]
mov edx, 0x3ec
movzx eax, ax
cmp dx, cx
jne 0x1004ce5c
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 1
push ecx
push esi
push edx
push eax
mov ecx, edi
call fcn.1004b850
cmp dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
jne 0x1004cd4a
jmp 0x1004ce5c
movzx eax, ax
jmp 0x1004ce21
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x6c], 1
cmp ebx, 0x39
ja 0x1004cec7
je 0x1004ceb7
lea eax, [ebx - 0x2b]
cmp eax, 4
ja case.default.0x1004ce76
jmp dword [eax*4 + 0x1004cf78]
mov eax, dword [ebp - 0x60]
test eax, eax
je case.default.0x1004ce76
mov ecx, dword [esi + 0x14]
jmp 0x1004cef1
cmp dword [ebp - 0x60], 0
je case.default.0x1004ce76
push dword [esi + 4]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
jmp 0x1004ceee
mov eax, dword [ebp - 0x60]
test eax, eax
je case.default.0x1004ce76
mov ecx, dword [esi + 0xc]
jmp 0x1004cef1
mov eax, dword [ebp - 0x60]
test eax, eax
je case.default.0x1004ce76
mov ecx, dword [esi + 8]
jmp 0x1004cef1
cmp ebx, 0x115
ja 0x1004cf2d
cmp ebx, 0x114
jae case.0x1004ce76.46
cmp ebx, 0x4e
je 0x1004cf29
cmp ebx, 0x111
jne case.default.0x1004ce76
test esi, esi
je case.default.0x1004ce76
mov ecx, esi
mov eax, dword [ebp - 0x60]
test ecx, ecx
je case.default.0x1004ce76
push esi
push eax
lea eax, [ebx + 0x2000]
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
jne 0x1004cd4a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100751d1
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi]
jmp 0x1004ceee
cmp ebx, 0x132
jb case.default.0x1004ce76
cmp ebx, 0x138
jbe case.0x1004ce76.46
cmp ebx, 0x210
jne case.default.0x1004ce76
mov eax, dword [ebp - 0x60]
movzx ecx, ax
test cx, cx
je 0x1004cf59
cmp ecx, 2
ja 0x1004cf59
mov ecx, esi
jmp 0x1004cef1
shr eax, 0x10
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
jmp 0x1004ceee
mov eax, dword [ebp - 0x64]
mov dword [eax], 1
jmp 0x1004cf14