Function at 0x52184c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x51
push 0
push 0
dec ecx
jne 0x521855
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404d54
mov eax, dword [ebp - 0xc]
call fcn.00404d54
xor eax, eax
push ebp
push 0x521e54
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040494c
mov edx, dword [ebp - 0x10]
mov eax, 0x521e6c
call fcn.00404ea8
dec eax
jne 0x5218b9
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.004c1328
jmp 0x521df9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3b0], 0
jne 0x521df9
mov eax, dword [ebp - 4]
mov byte [eax + 0x3b0], 1
mov dl, 1
mov eax, dword [0x41a664]
call fcn.00403a18
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
call fcn.004c010c
push dword [ebp - 0x5c]
push 0x521e7c
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
call fcn.004c0184
mov eax, dword [ebp - 0x64]
mov ecx, 8
mov edx, 2
call fcn.00404dc4
push dword [ebp - 0x60]
push 0x521e88
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404c2c
mov eax, dword [ebp - 4]
add eax, 0x448
mov edx, dword [ebp - 0x18]
call fcn.00404908
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x471dd0]
call fcn.00471e80
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x521df2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov ecx, dword [ebp - 0x48]
mov edx, 0x521e98
mov eax, dword [ebp - 0x10]
call fcn.004c11f8
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x521d2a
inc ebx
xor esi, esi
lea ecx, [ebp - 0x4c]
mov edx, esi
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
call dword [edi + 0xc]
push 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
mov cl, 0x3d
mov dl, 0x3d
call fcn.004c0780
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
call fcn.0040494c
mov edx, dword [ebp - 0x50]
mov eax, 0x521ea4
call fcn.004091f4
test al, al
je 0x521a71
mov edx, dword [ebp - 0x54]
mov eax, 0x521eb4
call fcn.00404ea8
dec eax
jne 0x5219f8
lea edx, [ebp - 0x14]
mov eax, 0x521ecc
call fcn.0040f544
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x54]
call fcn.0040494c
lea eax, [ebp - 0x24]
mov ecx, 0xe
mov edx, 1
call fcn.00404e04
jmp 0x521a32
mov edx, dword [ebp - 0x54]
mov eax, 0x521ee4
call fcn.00404ea8
dec eax
jne 0x521a32
lea edx, [ebp - 0x14]
mov eax, 0x521efc
call fcn.0040f544
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x54]
call fcn.0040494c
lea eax, [ebp - 0x24]
mov ecx, 0xd
mov edx, 1
call fcn.00404e04
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x74]
mov ecx, 1
mov eax, 0x521f10
call fcn.0040a9ec
mov eax, dword [ebp - 4]
add eax, 0x44c
mov edx, dword [ebp - 0x28]
call fcn.00404908
jmp 0x521d22
mov edx, dword [ebp - 0x50]
mov eax, 0x521f20
call fcn.004091f4
test al, al
je 0x521bcc
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x54]
call fcn.0040494c
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.005215d4
cmp dword [ebp - 0x38], 0
jne 0x521ac5
push 1
mov ecx, 1
mov edx, 1
mov eax, 0x521f30
call fcn.004c03e4
call fcn.00404384
jmp 0x521df9
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.0040494c
mov edx, dword [ebp - 0x38]
mov eax, 0x521f48
call fcn.00404ea8
mov edi, eax
test edi, edi
jle 0x521af9
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.00404dc4
jmp 0x521b4b
mov edx, dword [ebp - 0x38]
mov eax, 0x521f5c
call fcn.00404ea8
mov edi, eax
test edi, edi
jle 0x521b22
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.00404dc4
jmp 0x521b4b
mov edx, dword [ebp - 0x38]
mov eax, 0x521f78
call fcn.00404ea8
mov edi, eax
test edi, edi
jle 0x521b4b
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x38]
call fcn.005217d8
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x38]
call fcn.0040494c
mov eax, dword [ebp - 0x38]
push eax
mov ecx, 0x521f88
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
push 0x521fac
mov ecx, 0x521fb8
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
push 0x521fc8
mov ecx, 0x521fd4
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
push 0x521fc8
mov ecx, 0x521fe8
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
lea edx, [ebp - 0x7c]
mov eax, dword [ebp + 8]
call fcn.00409704
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, 0x521ff8
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
jmp 0x521d22
mov edx, dword [ebp - 0x50]
mov eax, 0x52200c
call fcn.004091f4
test al, al
je 0x521c4e
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x54]
call fcn.0040494c
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x30]
call fcn.004a169c
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x30]
call fcn.0040494c
cmp dword [ebp - 0xc], 0
je 0x521c33
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
call fcn.004091f4
test al, al
jne 0x521c33
push 1
mov ecx, 1
mov edx, 1
mov eax, 0x52201c
call fcn.004c03e4
call fcn.00404384
jmp 0x521df9
mov eax, dword [ebp - 0x30]
push eax
mov ecx, 0x52200c
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
jmp 0x521d22
mov edx, dword [ebp - 0x50]
mov eax, 0x522038
call fcn.004091f4
test al, al
je 0x521cd0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x54]
call fcn.0040494c
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x34]
call fcn.004a169c
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x34]
call fcn.0040494c
lea eax, [ebp - 0x284]
mov edx, dword [ebp - 0x34]
mov ecx, 0xff
call fcn.00404b48
lea eax, [ebp - 0x284]
lea edx, [ebp - 0x184]
call fcn.004e1dac
lea edx, [ebp - 0x184]
lea eax, [ebp - 0x20]
call fcn.00404b10
mov eax, dword [ebp - 0x20]
push eax
mov ecx, 0x522038
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
jmp 0x521d22
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x50]
call fcn.0040494c
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x54]
call fcn.0040494c
cmp dword [ebp - 0x40], 0
je 0x521d22
cmp dword [ebp - 0x44], 0
je 0x521d22
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, 0x521f9c
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 4]
mov edx, 0x52204c
mov eax, dword [ebp - 0x40]
call fcn.004091f4
test al, al
je 0x521d22
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x44]
call fcn.0040494c
inc esi
dec ebx
jne 0x52197d
lea edx, [ebp - 0x288]
mov eax, dword [ebp + 8]
call fcn.00409704
mov edx, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00525750
mov ebx, eax
test ebx, ebx
je 0x521da2
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call sub.user32.dll_SetWindowPos
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push ebx
call sub.user32.dll_SetWindowPos
push 5
push ebx
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x58], 0
je 0x521dca
mov eax, dword [ebp - 0x58]
call fcn.00404d64
push eax
call sub.kernel32.dll_GlobalAddAtomA
movzx eax, ax
push eax
push 0
push 0x709
push ebx
call sub.user32.dll_PostMessageA
jmp 0x521dca
cmp dword [ebp - 0x3c], 0
je 0x521dca
lea eax, [ebp - 0x28c]
mov edx, dword [ebp - 0x3c]
call fcn.00405154
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x348]
call fcn.004ba47c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521df9
mov eax, dword [ebp - 4]
mov byte [eax + 0x3b0], 0
mov eax, dword [ebp - 0x1c]
call fcn.00403a48
mov eax, dword [ebp - 0x48]
call fcn.00403a48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521e5b
lea eax, [ebp - 0x28c]
call fcn.00404fd8
lea eax, [ebp - 0x288]
call fcn.004048b4
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.004048d8
lea eax, [ebp - 0x64]
mov edx, 7
call fcn.004048d8
lea eax, [ebp - 0x44]
mov edx, 0xa
call fcn.004048d8
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004048d8
ret