Function at 0x50054c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x500554
push ebx
push esi
push edi
mov eax, 0x50026c
call fcn.00407378
mov esi, dword [0x503418]
xor eax, eax
push ebp
push 0x500868
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [0x5033f4]
mov edx, dword [edx]
call fcn.00403e84
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409274
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004090d8
mov edx, dword [ebp - 0x10]
mov eax, 0x506840
call fcn.00403d20
mov edx, dword [0x506840]
mov eax, 0x500880
call fcn.00404238
mov ebx, eax
test ebx, ebx
jle 0x500613
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x506840]
call fcn.00403f4c
mov ecx, eax
sub ecx, ebx
lea edx, [ebx + 4]
mov eax, dword [0x506840]
call fcn.00404154
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00409274
mov edx, dword [ebp - 0x1c]
mov eax, 0x506848
call fcn.00403d20
push 0x506840
lea ecx, [ebx + 3]
mov edx, 1
mov eax, dword [0x506840]
call fcn.00404154
lea edx, [ebp - 0x24]
mov eax, dword [esi]
call fcn.00453e58
mov eax, dword [ebp - 0x24]
call fcn.00403f4c
mov ebx, eax
add ebx, 5
mov eax, dword [0x506840]
call fcn.00403f4c
cmp ebx, eax
jge 0x5006a5
mov eax, dword [0x506840]
call fcn.00403f4c
cmp eax, 0x3f
jle 0x5006a5
mov eax, 0x500880
mov edx, dword [0x506840]
call fcn.00404238
mov ebx, eax
test ebx, ebx
jle 0x500682
sub ebx, 0x3f
cmp ebx, 1
jge 0x50066a
mov ebx, 1
push 0x506840
mov ecx, 0x3f
mov edx, ebx
mov eax, dword [0x506840]
call fcn.00404154
jmp 0x5006a5
push 0x506840
mov eax, dword [0x506840]
call fcn.00403f4c
mov edx, eax
sub edx, 0x3e
mov ecx, 0x3f
mov eax, dword [0x506840]
call fcn.00404154
mov eax, 0x506844
mov edx, dword [0x506840]
call fcn.00403d20
lea edx, [ebp - 0x28]
mov eax, dword [0x506844]
call fcn.00409274
cmp dword [ebp - 0x28], 0
je 0x5007b8
mov edx, dword [0x506844]
mov eax, 0x500890
call fcn.00404238
test eax, eax
jle 0x500707
mov eax, 0x500880
mov edx, dword [0x506844]
call fcn.00404238
test eax, eax
jle 0x500707
push 0x50089c
push 0
call sub.user32.dll_FindWindowA
mov dword [0x50683c], eax
jmp 0x500729
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x506844]
call fcn.004090d8
mov eax, dword [ebp - 0x2c]
call fcn.00404110
push eax
call sub.user32.dll_FindWindowA
mov dword [0x50683c], eax
cmp dword [0x50683c], 0
jbe 0x5007b8
mov eax, dword [0x50683c]
push eax
call sub.user32.dll_SetForegroundWindow
push 9
mov eax, dword [0x50683c]
push eax
call sub.user32.dll_ShowWindow
cmp dword [0x506848], 0
je 0x500840
xor eax, eax
push ebp
push 0x500795
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov ecx, 0x5008b0
mov edx, dword [0x506848]
call fcn.00403f98
mov eax, dword [ebp - 0x30]
push eax
call fcn.004304c0
pop edx
call fcn.00430160
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50079f
push 0
push 0
push 0x1400
mov eax, dword [0x50683c]
push eax
call sub.user32.dll_PostMessageA
jmp 0x500840
mov eax, dword [esi]
call fcn.004538f8
mov eax, dword [esi]
mov edx, 0x5008c8
call fcn.004534fc
mov ecx, dword [0x5031d0]
mov eax, dword [esi]
mov edx, dword [0x4a000c]
call fcn.00453910
mov ecx, dword [0x50353c]
mov eax, dword [esi]
mov edx, dword [0x4b63c4]
call fcn.00453910
lea edx, [ebp - 0x34]
mov eax, dword [0x50353c]
mov eax, dword [eax]
call fcn.00435418
mov eax, dword [ebp - 0x34]
mov edx, 0x5008e0
call fcn.0040405c
je 0x50082d
lea edx, [ebp - 0x38]
mov eax, dword [0x50353c]
mov eax, dword [eax]
call fcn.00435418
mov eax, dword [ebp - 0x38]
mov edx, 0x5008f4
call fcn.0040405c
jne 0x500839
mov eax, dword [0x50353c]
mov eax, dword [eax]
call fcn.004506a4
mov eax, dword [esi]
call fcn.00453990
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50086f
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00403cf0
lea eax, [ebp - 0x30]
mov edx, 9
call fcn.00403cf0
ret