Function at 0x4d5ca0
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a48
mov eax, dword [ebp - 8]
call fcn.00406a48
xor eax, eax
push ebp
push 0x4d6077
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x4f17e0], eax
xor eax, eax
mov dword [0x4f17e4], eax
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetStartupInfoW
mov dword [ebp - 0x4c], 0x44
mov eax, dword [ebp + 0x1c]
dec eax
je 0x4d5d0c
dec eax
je 0x4d5d21
dec eax
je 0x4d5d36
jmp 0x4d5d55
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 5
jmp 0x4d5d55
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 3
jmp 0x4d5d55
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x1c], di
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov word [ebp - 0x1a], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 8]
call fcn.00406aec
push eax
push 0
mov eax, dword [ebp + 0x20]
or eax, 0x4000000
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406aec
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4d5dd3
lea eax, [ebp - 0x27c]
mov ecx, 0x4d6094
mov edx, dword [ebp - 4]
call fcn.00406f34
mov ecx, dword [ebp - 0x27c]
mov dl, 1
mov eax, dword [0x40ce80]
call fcn.00417240
call fcn.00405914
push 0xea60
mov eax, dword [ebp - 0x5c]
push eax
call sub.user32.dll_WaitForInputIdle
test eax, eax
jne 0x4d5df3
mov eax, dword [ebp - 0x54]
push eax
push 0x4d5c28
call sub.user32.dll_EnumWindows
cmp dword [ebp + 0x1c], 0
jne 0x4d5e02
cmp edi, 0xa
je 0x4d5e82
xor ebx, ebx
push 0xea60
mov eax, dword [ebp - 0x5c]
push eax
call sub.user32.dll_WaitForInputIdle
test eax, eax
jne 0x4d5e20
mov eax, dword [ebp - 0x54]
call fcn.004d5c04
mov ebx, eax
mov esi, ebx
jmp 0x4d5e2e
mov esi, ebx
push ebx
call sub.user32.dll_GetParent
mov ebx, eax
push ebx
call sub.user32.dll_GetParent
test eax, eax
jne 0x4d5e24
push 0x104
lea eax, [ebp - 0x276]
push eax
push ebx
call sub.user32.dll_GetClassNameW
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x276]
mov ecx, 0x105
call fcn.00406c60
mov eax, dword [ebp - 0x280]
mov edx, 0x4d60b4
call fcn.00407138
jne 0x4d5e74
mov ebx, esi
cmp ebx, dword [0x4f17e0]
je 0x4d5e82
mov dword [0x4f17e4], ebx
cmp dword [0x4f17e0], 0
je 0x4d5ff2
cmp dword [0x4f17e4], 0
je 0x4d5ea0
mov ebx, dword [0x4f17e4]
jmp 0x4d5ea6
mov ebx, dword [0x4f17e0]
lea edx, [ebp - 0x6c]
mov eax, ebx
call fcn.004d3808
test al, al
je 0x4d5ff2
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
dec eax
jle 0x4d5ff2
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
dec eax
jle 0x4d5ff2
sub edi, 3
je 0x4d5ee6
sub edi, 3
je 0x4d5f01
sub edi, 4
je 0x4d5f21
jmp 0x4d5ff2
push ebx
call sub.user32.dll_IsZoomed
test eax, eax
jne 0x4d5ff2
push 3
push ebx
call sub.user32.dll_ShowWindow
jmp 0x4d5ff2
push ebx
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4d5ff2
push 2
mov eax, dword [0x4f17e0]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4d5ff2
push ebx
call sub.user32.dll_IsZoomed
test eax, eax
jne 0x4d5f35
push ebx
call sub.user32.dll_IsIconic
test eax, eax
je 0x4d5f42
push 9
mov eax, dword [0x4f17e0]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp + 0x1c]
dec eax
je 0x4d5f53
dec eax
je 0x4d5f86
dec eax
je 0x4d5fb5
jmp 0x4d5ff2
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0x18]
jne 0x4d5f67
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x68]
je 0x4d5ff2
push 0xffffffffffffffff
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x64]
sub edx, eax
push edx
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
call sub.user32.dll_MoveWindow
jmp 0x4d5ff2
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
sub edx, eax
cmp edx, dword [ebp + 0x10]
jne 0x4d5f9e
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x68]
cmp edx, dword [ebp + 0xc]
je 0x4d5ff2
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x68]
push edx
push eax
push ebx
call sub.user32.dll_MoveWindow
jmp 0x4d5ff2
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0x18]
jne 0x4d5fda
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x68]
jne 0x4d5fda
mov edx, dword [ebp - 0x64]
sub edx, eax
cmp edx, dword [ebp + 0x10]
jne 0x4d5fda
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
cmp eax, dword [ebp + 0xc]
je 0x4d5ff2
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
call sub.user32.dll_MoveWindow
cmp byte [ebp + 8], 0
jne 0x4d601f
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4d604c
push 1
call sub.kernel32.dll_Sleep
mov eax, dword [0x4eae70]
mov eax, dword [eax]
call fcn.00487948
push 0
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4d603a
cmp byte [0x4f17e8], 0
je 0x4d600c
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d607e
lea eax, [ebp - 0x280]
mov edx, 2
call fcn.00406a58
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406a58
ret