Function at 0x476410
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cef09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0
push eax
mov edi, ecx
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
mov ecx, ebx
call fcn.00475ff0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x47647b
cmp dword [ebp - 0x20], eax
jne 0x47647b
push ebx
push str.Invalid_Gui_name.
mov ecx, edi
call fcn.0043ed90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x28], ebx
call fcn.00475470
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x4764b2
mov ecx, dword [ebp - 0x14]
push ebx
push str.Parameter_1_invalid.
call fcn.0043ed90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4ec228]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4ec224]
mov dword [ebp - 0x38], eax
lea eax, [edi - 1]
mov dword [0x4ec228], 0
mov dword [0x4ec224], 0
cmp eax, 0x12
ja case.0x4764e9.2
movzx eax, byte [eax + 0x476efc]
jmp dword [eax*4 + 0x476ee8]
test esi, esi
je case.0x476672.6
mov ecx, esi
call fcn.00478ef0
mov esi, eax
jmp 0x476b54
test esi, esi
jne 0x476588
cmp dword [0x4ecf5c], esi
jne 0x47652c
push 0x41a0
call fcn.004b6720
add esp, 4
mov dword [0x4ecf5c], eax
test eax, eax
je 0x47674e
push 0xd8
call fcn.004b3125
add esp, 4
mov dword [ebp + 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00475b60
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47674e
mov edi, dword [ebp - 0x1c]
lea eax, [edi + 1]
push eax
call fcn.004b6720
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x476740
mov ecx, dword [ebp - 0x20]
push edi
push ecx
push eax
call fcn.004b4620
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
mov eax, dword [0x4e88cc]
mov edi, dword [eax + 0x48]
test edi, edi
je 0x4765b4
add dword [edi + 0x20], 0xffffffff
jne 0x4765b4
push dword [edi]
call fcn.004b6427
push 0xd8
push edi
call fcn.004b2e95
mov eax, dword [0x4e88cc]
add esp, 0xc
inc dword [esi + 0x20]
mov dword [eax + 0x48], esi
jmp case.0x476672.6
push str.LastFoundExist
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne case.0x4764e9.2
test esi, esi
je 0x4765ec
mov eax, dword [0x4e88cc]
mov ecx, dword [esi + 4]
mov dword [eax + 0xa4], ecx
jmp case.0x476672.6
mov eax, dword [0x4e88cc]
xor ecx, ecx
mov dword [eax + 0xa4], ecx
jmp case.0x476672.6
push 0x3a
push dword [ebp + 8]
call fcn.004b87b6
add esp, 8
test eax, eax
je 0x476657
test esi, esi
je 0x476663
mov ecx, esi
call fcn.00478ef0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [0x4eb990]
cmp dword [0x4eb734], eax
jne 0x476684
lea esi, [eax + eax]
test eax, eax
jne 0x476636
mov esi, 8
lea eax, [esi*4]
push eax
push dword [0x4eb730]
call fcn.004b87ab
add esp, 8
test eax, eax
jne 0x476679
xor esi, esi
jmp 0x476b54
xor ebx, ebx
jmp 0x47661d
test esi, esi
jne 0x476728
lea eax, [edi - 6]
cmp eax, 0xc
ja case.0x476672.11
movzx eax, byte [eax + 0x476f18]
jmp dword [eax*4 + 0x476f10]
mov dword [0x4eb730], eax
mov dword [0x4eb990], esi
cmp dword [0x4ecf5c], 0
jne 0x4766a7
push 0x41a0
call fcn.004b6720
add esp, 4
mov dword [0x4ecf5c], eax
test eax, eax
je 0x47674e
push 0xd8
call fcn.004b3125
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00475b60
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47674e
push 0xfa00
call fcn.004b6720
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x476740
lea eax, [ebx + 1]
push eax
call fcn.004b6720
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x476735
mov ecx, dword [ebp - 0x20]
push ebx
push ecx
push eax
call fcn.004b4620
mov eax, dword [esi]
add esp, 0xc
mov ecx, dword [0x4eb734]
mov byte [ebx + eax], 0
mov eax, dword [0x4eb730]
mov dword [esi + 0x14], 0x3e8
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x4eb734], ecx
mov ebx, dword [ebp + 0xc]
cmp edi, 1
jne 0x476767
mov eax, dword [ebp - 0x2c]
jmp 0x476771
push dword [esi + 0x18]
call fcn.004b6427
add esp, 4
push 0xd8
push esi
call fcn.004b2e95
add esp, 8
mov ecx, dword [ebp - 0x14]
push 0x4d5231
push str.Out_of_memory.
call fcn.0043ed90
mov esi, eax
jmp 0x476b54
cmp edi, 0x13
jne 0x4767a6
mov eax, ebx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x4767bf
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xd]
push ecx
push eax
mov ecx, esi
call fcn.0047d160
test eax, eax
jne 0x4767bf
xor esi, esi
jmp 0x476b54
mov dword [ebp - 0x28], 0
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
cmp dword [esi + 4], 0
jne 0x4767f0
mov ecx, esi
call fcn.00479170
test eax, eax
jne 0x4767f0
mov ecx, esi
call fcn.00478ef0
mov ecx, dword [ebp - 0x14]
push 0x4d5231
push str.Could_not_create_window.
call fcn.0043ed90
mov esi, eax
jmp 0x476b54
mov ecx, dword [0x4e88cc]
cmp edi, 0x13
jne 0x47682e
mov eax, dword [ecx + 0x48]
mov dword [ebp + 8], eax
test eax, eax
je 0x476828
add dword [eax + 0x20], 0xffffffff
jne 0x476828
push dword [eax]
call fcn.004b6427
push 0xd8
push dword [ebp + 8]
call fcn.004b2e95
mov ecx, dword [0x4e88cc]
add esp, 0xc
inc dword [esi + 0x20]
mov dword [ecx + 0x48], esi
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
test eax, eax
je 0x476867
push 0x10
lea eax, [ebp - 0x4e]
mov word [ebp - 0x50], 0x7830
push eax
push dword [esi + 4]
call fcn.004b61cd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2730
mov ecx, dword [0x4e88cc]
cmp dword [ebp - 0x28], 0
je 0x4768e6
cmp byte [ebp - 0xd], 0
je 0x47687c
mov eax, dword [esi + 4]
mov dword [ecx + 0xa4], eax
cmp dword [ebp - 0x18], 0
je 0x4768c2
mov edi, dword [ecx + 0x4c]
test edi, edi
je 0x4768aa
add dword [edi + 0x20], 0xffffffff
jne 0x4768aa
push dword [edi]
call fcn.004b6427
push 0xd8
push edi
call fcn.004b2e95
mov ecx, dword [0x4e88cc]
add esp, 0xc
cmp dword [ebp - 0x18], 1
mov edi, dword [ebp - 0x30]
jne 0x4768bb
inc dword [esi + 0x20]
mov dword [ecx + 0x4c], esi
jmp 0x4768c2
mov dword [ecx + 0x4c], 0
cmp edi, 0x13
jne case.0x476672.6
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je case.0x476672.6
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp case.0x476672.6
lea eax, [edi - 2]
cmp eax, 0x10
ja case.0x4768f2.11
jmp dword [eax*4 + 0x476f28]
mov ecx, ebx
call fcn.004758d0
mov byte [ebp + 8], al
test al, al
jne 0x47691c
mov ecx, dword [ebp - 0x14]
push ebx
push str.Parameter_2_invalid.
call fcn.0043ed90
mov esi, eax
jmp 0x476b54
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004796e0
mov esi, eax
jmp 0x476b54
mov al, byte [ebx]
test al, al
je 0x4769b4
mov ecx, ebx
nop dword [eax + eax]
cmp al, 0x20
je 0x476948
cmp al, 9
jne 0x47694e
mov al, byte [ecx + 1]
inc ecx
jmp 0x476940
test al, al
je 0x476990
cmp al, 0x2d
je 0x47695a
cmp al, 0x2b
jne 0x476961
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x476990
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x476970
cmp al, 0x58
jne 0x476990
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x476990
push 0x10
push 0
push ebx
call fcn.004b9ad3
add esp, 0xc
jmp 0x476999
push ebx
call fcn.004b9548
add esp, 4
cmp byte [esi + 0xc8], 0
je 0x4769b1
push 0x60
push dword [0x4ed800]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 0x78], eax
mov edi, dword [ebp + 0x10]
mov al, byte [edi]
test al, al
je case.0x476672.6
mov ecx, edi
cmp al, 0x20
je 0x4769cb
cmp al, 9
jne 0x4769d1
mov al, byte [ecx + 1]
inc ecx
jmp 0x4769c3
test al, al
je 0x476a13
cmp al, 0x2d
je 0x4769dd
cmp al, 0x2b
jne 0x4769e4
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x476a13
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x4769f3
cmp al, 0x58
jne 0x476a13
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x476a13
push 0x10
push 0
push edi
call fcn.004b9ad3
add esp, 0xc
jmp 0x476a1c
push edi
call fcn.004b9548
add esp, 4
cmp byte [esi + 0xc8], 0
je 0x476a34
push 0x60
push dword [0x4ed800]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 0x7c], eax
jmp case.0x476672.6
cmp byte [ebx], 0
je 0x476ae5
mov edi, dword [ebp - 0x14]
mov edi, dword [edi + 0x600]
test edi, edi
je 0x476a66
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x476a7b
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x476a52
mov ecx, dword [ebp - 0x14]
push ebx
push str.Menu_does_not_exist.
call fcn.0043ed90
mov esi, eax
jmp 0x476b54
cmp edi, dword [0x4edebc]
je 0x476a66
push 2
mov ecx, edi
call fcn.0048bf90
push dword [edi + 0x20]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x476aad
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov dword [esi + 0x74], 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
lea eax, [ebp - 0x350]
mov ecx, esi
push eax
push edi
call fcn.004896b0
mov eax, dword [ebp + 0x10]
test eax, eax
je case.0x476672.6
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.USER32.dll_CreateAcceleratorTableA]
mov dword [esi + 0x74], eax
jmp case.0x476672.6
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [esi + 0x74]
test eax, eax
je case.0x476672.6
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov dword [esi + 0x74], 0
jmp case.0x476672.6
push dword [ebp + 0x10]
mov ecx, esi
push ebx
call fcn.004827e0
mov esi, eax
jmp 0x476b54
push str.NoHide
push ebx
call fcn.004b626e
add esp, 8
mov ecx, esi
test eax, eax
setne al
movzx eax, al
push eax
call fcn.004836d0
mov esi, eax
jmp 0x476b54
mov eax, dword [esi + 4]
test eax, eax
je case.0x476672.6
push 0
push eax
jmp 0x476b49
push 6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 1
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x476b8d
mov eax, dword [0x4ec228]
test eax, eax
je 0x476b7f
push eax
call fcn.004b6427
add esp, 4
cmp dword [0x4ec224], 0x400000
jbe 0x476b7f
dec dword [0x4ec220]
mov eax, dword [ebp - 0x38]
mov dword [0x4ec228], edi
mov dword [0x4ec224], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 3
jmp 0x476b46
push 9
jmp 0x476b46
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
imul eax, dword [esi + 0x50], 0x54
mov ecx, ebx
add eax, dword [0x4ecf5c]
push eax
call fcn.00484ef0
mov ecx, dword [ebp + 8]
add esp, 8
cmp ecx, 0xffffffff
je 0x476bd1
mov dword [esi + 0x54], ecx
cmp eax, 0xffffffff
jle case.0x4768f2.11
mov dword [esi + 0x50], eax
jmp case.0x476672.6
cmp byte [ebx], 0
je case.0x476672.6
push ebx
mov ecx, esi
call fcn.00484d40
cmp eax, dword [esi + 0x10]
jae case.0x476672.6
shl eax, 6
add eax, dword [esi + 0x18]
mov cl, byte [eax + 4]
cmp edi, 0xe
jne 0x476c1b
cmp cl, 0xa
jne case.0x476672.6
mov dword [esi + 0x48], eax
jmp case.0x476672.6
cmp cl, 0xb
jne case.0x476672.6
mov dword [esi + 0x4c], eax
jmp case.0x476672.6
mov edi, dword [ebp + 0x10]
mov al, byte [edi]
test al, al
jne 0x476c46
cmp byte [ebx], al
jne 0x476d1c
mov dword [ebp + 0x10], 0xff
jmp 0x476cb8
mov ecx, edi
cmp al, 0x20
je 0x476c50
cmp al, 9
jne 0x476c56
mov al, byte [ecx + 1]
inc ecx
jmp 0x476c48
test al, al
je 0x476c98
cmp al, 0x2d
je 0x476c62
cmp al, 0x2b
jne 0x476c69
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x476c98
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x476c78
cmp al, 0x58
jne 0x476c98
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x476c98
push 0x10
push 0
push edi
call fcn.004b9ad3
add esp, 0xc
jmp 0x476ca1
push edi
call fcn.004b9548
add esp, 4
add eax, 0xffffffff
mov dword [ebp + 0x10], eax
js 0x476e5d
cmp eax, 0xfe
jg 0x476e5d
mov ch, byte [esi + 0xc1]
movzx eax, ch
cmp eax, dword [ebp + 0x10]
je 0x476d13
cmp ch, 0xff
je 0x476d06
xor eax, eax
xor cl, cl
cmp dword [esi + 0x10], eax
jbe 0x476d06
mov edx, dword [esi + 0x18]
add edx, 4
nop word [eax + eax]
cmp byte [edx], 0x13
jne 0x476ceb
cmp cl, ch
je 0x476cf6
inc cl
inc eax
add edx, 0x40
cmp eax, dword [esi + 0x10]
jb 0x476ce0
jmp 0x476d06
shl eax, 6
add eax, dword [esi + 0x18]
je 0x476d06
push eax
mov ecx, esi
call fcn.00488960
mov eax, dword [ebp + 0x10]
mov byte [esi + 0xc1], al
mov byte [esi + 0x44], 0
cmp byte [ebx], 0
je case.0x476672.6
cmp byte [edi], 0
jne 0x476d40
cmp byte [esi + 0xc1], 0xff
jne 0x476d40
mov al, byte [esi + 0xc0]
test al, al
je 0x476d38
dec al
jmp 0x476d3a
xor al, al
mov byte [esi + 0xc1], al
push str.Exact
push dword [ebp + 0x14]
call fcn.004b626e
add esp, 8
test eax, eax
sete byte [ebp + 0x10]
test eax, eax
je 0x476de3
push 0
push 0
push 0
xor edx, edx
mov ecx, ebx
call fcn.0049df30
add esp, 0xc
test eax, eax
je 0x476de3
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x476d80
cmp al, 9
jne 0x476d83
inc ecx
jmp 0x476d76
test al, al
je 0x476dc5
cmp al, 0x2d
je 0x476d8f
cmp al, 0x2b
jne 0x476d96
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x476dc5
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x476da5
cmp al, 0x58
jne 0x476dc5
movsx eax, byte [ecx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x476dc5
push 0x10
push 0
push ebx
call fcn.004b9ad3
add esp, 0xc
jmp 0x476dce
push ebx
call fcn.004b9548
add esp, 4
add eax, 0xffffffff
js 0x476907
cmp eax, 0xff
jle 0x476e3f
jmp 0x476907
mov ch, byte [esi + 0xc1]
cmp ch, 0xff
je 0x476e13
mov edi, dword [esi + 0x10]
xor cl, cl
xor eax, eax
test edi, edi
je 0x476e13
mov edx, dword [esi + 0x18]
add edx, 4
nop
cmp byte [edx], 0x13
jne 0x476e0b
cmp cl, ch
je 0x476e28
inc cl
inc eax
add edx, 0x40
cmp eax, edi
jb 0x476e00
mov ecx, dword [ebp - 0x14]
push ebx
push str.Tab_name_doesnt_exist_yet.
call fcn.0043ed90
mov esi, eax
jmp 0x476b54
shl eax, 6
add eax, dword [esi + 0x18]
je 0x476e13
push dword [ebp + 0x10]
push ebx
push eax
call fcn.004884f0
cmp eax, 0xffffffff
je 0x476e13
movzx ecx, byte [esi + 0xc2]
cmp ecx, eax
je case.0x476672.6
mov byte [esi + 0xc2], al
mov byte [esi + 0x44], 0
jmp case.0x476672.6
mov ecx, dword [ebp - 0x14]
push edi
push str.Parameter_3_invalid.
call fcn.0043ed90
mov esi, eax
jmp 0x476b54
cmp byte [ebx], 0
je 0x476e88
lea eax, [esi + 0x60]
mov ecx, ebx
push eax
lea edx, [esi + 0x58]
call fcn.0049f0f0
add esp, 4
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
je 0x476e9f
lea eax, [esi + 0x64]
push eax
lea edx, [esi + 0x5c]
call fcn.0049f0f0
add esp, 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x476672.6
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x476672.6
push 0x4d9c04
push ebx
call fcn.004b626e
add esp, 8
neg eax
sbb eax, eax
neg eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_FlashWindow]
jmp case.0x476672.6