Function at 0x4a7f40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58e833
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov edx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov ebx, 1
push ebx
push 0
mov dword [ebp + 0xc], eax
mov dword [edx], ebx
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x790], eax
call edi
mov dword [esi + 0x794], eax
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
push eax
lea ecx, [ebp + 0x10]
push 0x5a3c64
push ecx
call fcn.004060d0
push 0x4dc
call fcn.0055549a
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4a800e
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], ebx
jle 0x4a8004
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0x10]
call fcn.00403bd0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, edi
call fcn.00493020
jmp 0x4a8010
xor eax, eax
mov byte [ebp - 4], bl
push 0
push ecx
mov dword [esi + 0x798], eax
mov eax, esp
mov dword [ebp + 8], esp
push 0
push 0
push 0
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x798]
mov dword [ebp + 8], esp
push eax
call fcn.004a7d30
mov edx, dword [esi + 0x798]
lea ecx, [esi + 0x5a8]
mov dword [edx + 0x2f4], ecx
mov eax, dword [esi + 0x798]
mov eax, dword [eax + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x2d0], 0
mov ecx, dword [esi + 4]
lea edi, [esi + 0x2bc]
mov dword [ebp + 8], ecx
jne 0x4a8096
call fcn.00552f9a
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4a8096
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4a80c2
push edi
lea edx, [edi + 8]
push edx
push 0x5fd800
call fcn.004125d0
mov eax, dword [ebp + 8]
mov ecx, dword [0x5fd7c0]
push 0
push 0x4129f0
push eax
push 0x15f
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x798]
mov dword [esi + 0x2e0], eax
mov eax, dword [edx + 4]
push eax
mov ecx, edi
call fcn.004a3010
mov eax, dword [esi + 0x794]
mov ecx, edi
mov dword [esi + 0x598], eax
call fcn.004a3020
mov ecx, dword [esi + 0x798]
push 0
push 0
mov dword [ecx + 0x4d8], eax
push 0
lea ecx, [esi + 0x24]
call fcn.004a6d40
fld dword [esi + 0x7c]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
call fcn.00555c30
push ebx
push 0
push eax
push eax
lea ecx, [esi + 0x24]
call fcn.00498590
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a814a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10