Function at 0x41ac40
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
push ebx
mov ebx, dword [esp + 0xe4]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0xe4]
push esi
push edi
jl 0x41ae4b
cmp ebx, 0xa
jge 0x41ae4b
mov ecx, dword [0x513890]
push ebx
call fcn.00408b50
mov ecx, dword [0x513890]
mov esi, eax
push ebx
mov dword [esp + 0x28], esi
call fcn.00408b60
mov edi, eax
xor eax, eax
push 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x10ca0000
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [0x9096c4]
mov esi, dword [0x9096c0]
xor ecx, ecx
test eax, eax
setl cl
mov dword [esp + 0x28], esi
dec ecx
and eax, ecx
mov cl, byte [0x5138a8]
test cl, cl
mov dword [esp + 0x10], eax
je 0x41ad25
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov edx, dword [0x4e95c8]
push edx
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0x40
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
sub ecx, dword [esp + 0x1c]
push ecx
push edx
push esi
push 0
push ebp
mov byte [0x5138a8], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
call fcn.00417ed0
add esp, 4
jmp 0x41ad46
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push 4
sub ecx, edx
mov edx, dword [esp + 0x20]
push ecx
sub edx, dword [esp + 0x1c]
push edx
push eax
push esi
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [0x9096b5]
test al, al
je 0x41ada6
mov eax, dword [0x51389c]
test eax, eax
jne 0x41ad89
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x3e9
push ebp
push 0
push 0x50000003
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowA]
push 0
push 0x1000
push 0x401
push eax
mov dword [0x51389c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x51389c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x51389c]
mov al, 1
mov byte [0x5138a0], al
jmp 0x41adc6
mov ecx, dword [0x51389c]
test ecx, ecx
je 0x41adbf
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x51389c]
xor al, al
mov byte [0x5138a0], al
test ecx, ecx
je 0x41ade4
test al, al
je 0x41ade4
lea edx, [esp + 0x2c]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x30]
jmp 0x41ade6
xor esi, esi
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x48]
lea ecx, [esi + edi]
cmp eax, ecx
je 0x41ae32
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub esi, eax
mov eax, dword [esp + 0x20]
add esi, edi
add eax, esi
mov esi, dword [esp + 0x18]
push 4
mov dword [esp + 0x24], eax
sub eax, esi
push eax
mov eax, dword [esp + 0x18]
sub edx, ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x24]
push 1
push edi
mov dword [0x5138a4], ebx
mov dword [0x909334], ebx
push edx
jmp 0x41b030
mov al, byte [0x5138a8]
test al, al
jne 0x41b03b
cmp ebx, 0xffffffff
jne 0x41ae6e
mov eax, dword [0x51344c]
mov esi, dword [0x513048]
mov dword [esp + 0x10], eax
jmp 0x41ae80
mov ecx, dword [ebx*4 + 0x513628]
mov esi, dword [ebx*4 + 0x513548]
mov dword [esp + 0x10], ecx
mov edx, dword [0x513648]
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 2
lea ecx, [esp + 0x50]
push ecx
mov word [esp + 0x78], 0x9c
mov dword [esp + 0x7c], 0x1c0000
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], esi
call edi
test eax, eax
jne 0x41b03b
push 4
lea edx, [esp + 0x50]
push edx
call edi
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x10000000
push 0xfffffffffffffff0
push ebp
mov dword [0x4e95c8], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [esp + 0x10]
push 0x40
push esi
push edi
push 0
push 0
push 0
push ebp
mov byte [0x5138a8], 1
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp ebx, 0xffffffff
jne 0x41af62
mov ecx, dword [0x513638]
xor eax, eax
test ecx, ecx
jle 0x41af62
mov edx, dword [eax*4 + 0x513650]
cmp edx, dword [0x51344c]
jne 0x41af58
mov edx, dword [0x513048]
cmp dword [eax*4 + 0x513570], edx
je 0x41af5f
inc eax
cmp eax, ecx
jl 0x41af3a
jmp 0x41af62
lea ebx, [eax + 0xa]
mov eax, dword [0x513894]
test eax, eax
mov dword [0x909334], ebx
je 0x41b013
mov ebx, dword [sym.imp.USER32.dll_IsMenu]
push eax
call ebx
test eax, eax
je 0x41b013
mov eax, dword [0x513864]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_DestroyMenu]
je 0x41afae
push eax
call ebx
test eax, eax
je 0x41afae
mov eax, dword [0x513864]
push eax
call edi
mov dword [0x513864], 0
mov eax, dword [0x513868]
test eax, eax
je 0x41afd1
push eax
call ebx
test eax, eax
je 0x41afd1
mov ecx, dword [0x513868]
push ecx
call edi
mov dword [0x513868], 0
mov eax, dword [0x513870]
test eax, eax
je 0x41aff4
push eax
call ebx
test eax, eax
je 0x41aff4
mov edx, dword [0x513870]
push edx
call edi
mov dword [0x513870], 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [0x513894]
push eax
call edi
mov edi, dword [esp + 0x10]
mov dword [0x513894], 0
mov eax, dword [0x51389c]
test eax, eax
je 0x41b025
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
mov byte [0x5138a0], 0
push edi
mov ecx, dword [0x513890]
call fcn.00408b70
mov ecx, dword [0x513888]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41b0ae
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x51389c]
test eax, eax
je 0x41b081
mov cl, byte [0x5138a0]
test cl, cl
je 0x41b081
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
jmp 0x41b083
xor eax, eax
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [0x513888]
push 1
sub edx, eax
mov eax, dword [esp + 0x20]
sub edx, ebp
push edx
sub eax, edi
push eax
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [0x513890]
pop edi
pop esi
mov dword [0x4e9130], 1
mov eax, dword [edx + 4]
pop ebp
mov byte [eax + 0x804], 1
pop ebx
add esp, 0xd8
ret