Function at 0x401b00
Capabilities:
Check for time delay via gettickcount
Create process on windows
Enumerate gui resources
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x40f5e1
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x414090]
xor eax, esp
mov dword [esp + 0x50c], eax
push ebp
push esi
push edi
mov eax, dword [0x414090]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
xor ebp, ebp
mov edi, 8
cmp dword [ebx + 0x64], edi
mov dword [esp + 0x18], ebp
jb 0x401b4f
mov eax, dword [ebx + 0x50]
jmp 0x401b52
lea eax, [ebx + 0x50]
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x110]
call fcn.004021a0
lea edx, [esp + 0x314]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebx + 0x1c], edi
jb 0x401b80
mov eax, dword [ebx + 8]
jmp 0x401b83
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0x78]
push eax
call fcn.00402bb0
lea ecx, [ebx + 0x24]
push eax
lea edi, [esp + 0x48]
mov dword [esp + 0x52c], ebp
call fcn.00402d80
push eax
mov edi, 0x411c8c
lea esi, [esp + 0x28]
mov byte [esp + 0x530], 1
call fcn.00402e10
push eax
lea edi, [esp + 0x118]
lea esi, [esp + 0xf4]
mov byte [esp + 0x534], 2
call fcn.00402e10
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp eax, ebp
mov edi, vtable.CString.0
mov dword [esp + 0x20], edi
je 0x401bf8
push eax
call fcn.00404738
add esp, 4
cmp dword [esp + 0x3c], 8
jb 0x401c0c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00404738
add esp, 4
mov eax, dword [esp + 0x64]
cmp eax, ebp
mov esi, 7
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
mov dword [esp + 0x44], edi
je 0x401c33
push eax
call fcn.00404738
add esp, 4
cmp dword [esp + 0x60], 8
jb 0x401c47
mov edx, dword [esp + 0x4c]
push edx
call fcn.00404738
add esp, 4
mov eax, dword [esp + 0x98]
cmp eax, ebp
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
mov dword [esp + 0x78], edi
je 0x401c6c
push eax
call fcn.00404738
add esp, 4
cmp dword [esp + 0x94], 8
jb 0x401c86
mov eax, dword [esp + 0x80]
push eax
call fcn.00404738
add esp, 4
push 0x44
lea ecx, [esp + 0xa0]
push ebp
push ecx
call fcn.00409900
mov eax, 8
add esp, 0xc
cmp dword [ebx + 0x1c], eax
mov dword [esp + 0x9c], 0x44
jb 0x401cb3
mov ecx, dword [ebx + 8]
jmp 0x401cb6
lea ecx, [ebx + 8]
cmp dword [esp + 0x104], eax
mov edx, dword [esp + 0xf0]
jae 0x401ccd
lea edx, [esp + 0xf0]
cmp dword [ebx + 0x40], eax
jb 0x401cd7
mov eax, dword [ebx + 0x2c]
jmp 0x401cda
lea eax, [ebx + 0x2c]
lea esi, [esp + 0x68]
push esi
lea esi, [esp + 0xa0]
push esi
push ecx
push ebp
push 0x20
push ebp
push ebp
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401ddc
mov edx, dword [esp + 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x6c]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x102
call ebp
sub eax, esi
cmp eax, 0xea60
jae 0x401d74
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
nop
push 0xc8
call esi
push ebx
push 0x4017a0
mov dword [ebx + 0x148], 0
call edi
cmp dword [ebx + 0x148], 0
jne 0x401dd2
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0xea60
jb 0x401d40
mov edi, vtable.CString.0
xor ebp, ebp
lea ecx, [esp + 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esp + 0xe8], edi
je 0x401de8
xor edx, edx
cmp eax, 2
mov eax, dword [esp + 0x108]
setne dl
add edx, 1
cmp eax, ebp
mov esi, edx
je 0x401db4
push eax
call fcn.00404738
add esp, 4
cmp dword [esp + 0x104], 8
jb 0x401dce
mov eax, dword [esp + 0xf0]
push eax
call fcn.00404738
add esp, 4
mov eax, esi
jmp 0x401e18
mov dword [esp + 0x14], 0
jmp 0x401d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x401d76
mov eax, dword [esp + 0x108]
cmp eax, ebp
je 0x401dfc
push eax
call fcn.00404738
add esp, 4
cmp dword [esp + 0x104], 8
jb 0x401e16
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00404738
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.00404729
add esp, 0x51c
ret