Function at 0x422ad8
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
push ebx
xor ebx, ebx
cmp dword [ebp + 8], 0xa
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
jl 0x422e73
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], ebx
je 0x422e73
cmp dword [esi + 8], ebx
je 0x422e73
cmp dword [esi + 0xc], ebx
je 0x422e73
cmp dword [esi + 0x10], ebx
je 0x422e73
cmp dword [esi + 0x14], ebx
je 0x422e73
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x422e73
cmp dword [esi + 0x1c], ebx
je 0x422e73
cmp dword [esi + 0x20], ebx
je 0x422e73
cmp dword [esi + 0x24], ebx
je 0x422e73
cmp word [eax], 0x30
push edi
mov edi, dword [sym.imp.MSVCR70.dll_wcstoul]
je 0x422b78
push 0xa
lea ecx, [ebp - 0xc]
push ecx
push eax
call edi
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push ebx
push ebx
mov dword [0x426084], 1
mov dword [ebp - 4], 5
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x422ba2
call sub.aspnet_isapi.dll_InitializeLibrary
jmp 0x422d68
push ebx
push 0x40
push ebx
push 0xa
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x14]
mov dword [ebp - 4], 6
call edi
add esp, 0xc
push eax
push 0xa
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x10]
call edi
add esp, 0xc
push eax
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x422b98
push ebx
push 0xa
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x20]
call edi
add esp, 0xc
push eax
push 0xa
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x1c]
call edi
add esp, 0xc
push eax
call sub.aspnet_isapi.dll_SetClrThreadPoolLimits
mov dword [ebp - 4], 7
call sub.aspnet_isapi.dll_InitializeLibrary
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x422d68
call fcn.00422ac4
call sub.aspnet_isapi.dll_InitGlobalPerfCounters
push dword [esi + 8]
mov edi, dword [sym.imp.MSVCR70.dll_swprintf]
push dword [esi + 4]
mov ebx, 0x421468
push ebx
push dword [esi + 0x24]
lea eax, [ebp - 0x4c0]
push 0x421430
push eax
mov dword [ebp - 4], 1
call edi
add esp, 0x18
lea eax, [ebp - 0x4c0]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
mov dword [0x426094], eax
je 0x422d5e
push dword [esi + 8]
lea eax, [ebp - 0x1a0]
push dword [esi + 4]
push ebx
push dword [esi + 0x24]
push 0x4213f0
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
mov dword [0x426090], eax
je 0x422d5e
push dword [esi + 8]
lea eax, [ebp - 0x330]
push dword [esi + 4]
mov dword [ebp - 4], 2
push ebx
push dword [esi + 0x24]
push 0x4213a0
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x330]
push eax
call fcn.00422067
test eax, eax
mov dword [ebp - 8], eax
jne 0x422d66
push dword [esi + 8]
lea eax, [ebp - 0x650]
push dword [esi + 4]
mov dword [ebp - 4], 3
push ebx
push dword [esi + 0x24]
push 0x421350
push eax
call edi
push dword [esi + 0xc]
call dword [sym.imp.MSVCR70.dll__wtoi]
add esp, 0x1c
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.0042272c
test eax, eax
mov dword [ebp - 8], eax
jne 0x422d66
mov dword [ebp - 4], 4
call sub.aspnet_isapi.dll_InitializeManagedCode
test eax, eax
mov dword [ebp - 8], eax
jne 0x422d66
mov edi, dword [sym.imp.MSVCR70.dll__beginthread]
xor ebx, ebx
push ebx
push ebx
push 0x422a58
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 8
call edi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x422db8
call fcn.0042418e
mov dword [ebp - 8], eax
xor ebx, ebx
pop edi
mov eax, dword [0x426090]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x422d7b
push eax
call esi
mov eax, dword [0x426094]
cmp eax, ebx
je 0x422d87
push eax
call esi
call fcn.00421a0f
call fcn.00422492
cmp dword [ebp - 0x10], 1
jne 0x422d9c
call sub.aspnet_isapi.dll_UnInitializeManagedCode
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 4], ebx
pop esi
pop ebx
je 0x422db4
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004229d5
xor eax, eax
leave
ret
push dword [0x426094]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0x4260a0
call fcn.00422e91
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 8], ebx
jmp 0x422e09
push 0xfa
call esi
cmp dword [0x426078], ebx
jne 0x422e06
cmp dword [ebp + 8], 9
jle 0x422e06
mov dword [ebp + 8], ebx
call fcn.004228e7
cmp dword [0x426078], ebx
jne 0x422e06
call fcn.00422a8e
inc dword [ebp + 8]
cmp dword [0x426078], ebx
je 0x422ddc
mov eax, dword [0x42608c]
cmp eax, ebx
mov dword [0x426088], ebx
je 0x422e2a
mov dword [ebp - 8], eax
mov dword [ebp - 4], 4
call fcn.00421a0f
push ebx
push ebx
push 0x42297d
call edi
add esp, 0xc
push 0x64
call esi
xor edi, edi
jmp 0x422e45
xor ebx, ebx
cmp dword [0x426088], ebx
jne 0x422d66
push 0x64
call esi
inc edi
cmp edi, 0x12c
jl 0x422e43
cmp dword [0x426088], 0
jne 0x422d66
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4212b0
call dword [sym.imp.MSVCR70.dll_printf]
pop ecx
jmp 0x422d69