Function at 0x41f334
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 4]
cmp ecx, 0x18
je 0x41f35a
cmp ecx, 0x19
je 0x41f389
cmp ecx, 0x1a
je 0x41f3af
jmp 0x41f3dc
mov ecx, 0x41f698
mov dword [ebx + 0x10], ecx
mov ecx, 0x41f8cc
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], 0x48b7f4
mov ecx, dword [0x4982d4]
mov dword [ebx + 0x1c], ecx
push 0
mov ecx, dword [0x489b18]
call fcn.00415c24
jmp 0x41f3dc
mov ecx, 0x41fcb4
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x18], 0x48b848
mov ecx, dword [0x49b368]
mov dword [ebx + 0x1c], ecx
push ebx
call fcn.00421850
add esp, 4
jmp 0x41f3dc
mov ecx, 0x41f698
mov dword [ebx + 0x10], ecx
mov ecx, 0x41f8cc
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], 0x48b848
mov ecx, dword [0x49b36c]
mov dword [ebx + 0x1c], ecx
push 0xa
mov ecx, dword [0x489b18]
call fcn.00415c24
mov ecx, dword [ebx + 0x1c]
cmp ecx, esi
je 0x41f44d
test esi, esi
je 0x41f3f2
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_ShowWindow]
lea eax, [ebx + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x41f44d
push 0
mov edx, dword [0x497808]
sub edx, dword [0x497800]
inc edx
push edx
mov edx, dword [0x497804]
sub edx, dword [0x4977fc]
inc edx
push edx
push dword [0x497800]
push dword [0x4977fc]
mov esi, ecx
mov ecx, ecx
mov edx, dword [esi]
call dword [edx + 0x14]
push 0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
call fcn.004517ee
push 5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, 0x18
cmp dword [ebx], eax
je 0x41f45f
cmp dword [ebx + 4], eax
jne 0x41f4f6
mov ecx, 0x497150
call fcn.0040bac0
mov ecx, 0x4972ec
call fcn.0040f0dc
xor eax, eax
cmp dword [0x4982bc], eax
jle 0x41f4a7
mov esi, eax
push 0
push 0
mov ecx, dword [0x4982c0]
mov ecx, dword [esi + ecx]
push dword [ecx]
push ebx
call fcn.00421034
add esi, 4
add esp, 0x10
mov ecx, dword [0x4982bc]
shl ecx, 2
cmp ecx, esi
jg 0x41f47f
mov ecx, 0x4982b0
call fcn.00432875
xor eax, eax
cmp dword [0x4976ac], eax
jle 0x41f4db
mov esi, eax
mov ecx, dword [0x4976b0]
mov ecx, dword [esi + ecx]
call fcn.00416538
add esi, 4
mov ecx, dword [0x4976ac]
shl ecx, 2
cmp ecx, esi
jg 0x41f4bd
xor eax, eax
mov dword [0x4982e0], eax
mov dword [0x4982dc], eax
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x1c]
call fcn.004516ef
jmp 0x41f66e
cmp dword [ebx], 0x19
jne 0x41f555
cmp dword [ebx + 4], 0x1a
jne 0x41f555
cmp dword [0x4982e0], 0
je 0x41f66e
mov eax, dword [0x4982e0]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x41f524
mov ecx, eax
mov eax, dword [eax]
call dword [eax + 8]
mov ecx, dword [0x4982e0]
push dword [ecx + 0x20]
mov ecx, 0x497608
call fcn.00432e5c
mov esi, eax
test eax, eax
js 0x41f546
push esi
mov ecx, dword [ebx + 0x1c]
call fcn.004516ef
mov dword [0x4982e0], 0
jmp 0x41f66e
cmp dword [ebx], 0x1a
jne 0x41f66e
cmp dword [ebx + 4], 0x19
jne 0x41f66e
push 0
push 0
push 0x188
mov ecx, dword [0x49b36c]
mov ecx, dword [ecx + 0x24]
push dword [ecx + 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
js 0x41f596
mov edx, dword [0x497618]
mov edi, dword [edx + esi*4]
jmp 0x41f598
xor edi, edi
cmp dword [0x4982bc], ecx
jle 0x41f5ca
mov esi, ecx
push 0
push 0
mov ecx, dword [0x4982c0]
mov ecx, dword [esi + ecx]
push dword [ecx]
push ebx
call fcn.00421034
add esi, 4
add esp, 0x10
mov ecx, dword [0x4982bc]
shl ecx, 2
cmp ecx, esi
jg 0x41f5a2
mov ecx, 0x4982b0
call fcn.00432875
mov ecx, dword [0x49825c]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov word [ebp - 4], 0
test edi, edi
je 0x41f65d
cmp dword [ecx + 0xc], 0
jle 0x41f65d
mov eax, ecx
add eax, 0x10
xor esi, esi
mov ecx, dword [eax]
mov ecx, dword [ecx + esi]
mov ecx, dword [ecx + 0x20]
cmp ecx, edi
jne 0x41f649
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
push eax
push 0
mov ecx, dword [0x49b368]
call fcn.00451737
push 0
push 1
push edi
push ebx
call fcn.00421034
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov ecx, dword [edx + ecx*4]
mov dword [0x4982e0], ecx
mov word [ebp - 4], 1
add esp, 0x10
jmp 0x41f65d
add esi, 4
test edi, edi
je 0x41f65d
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0xc]
shl ecx, 2
cmp ecx, esi
jg 0x41f5f6
cmp word [ebp - 4], 0
jne 0x41f66e
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x1c]
call fcn.004516ef
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x41f680
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.DLL_ShowWindow]
push ebx
call fcn.004091b8
push ebx
call fcn.00409b1c
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret