Function at 0x451db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e016
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4ad658]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
lea eax, [esi + 0x110]
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
mov byte [esp + 0x34], bl
call fcn.0043a210
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0xb8]
mov dword [esp + 0x1b4], ebx
call fcn.00412a40
push 4
push str..tsk
lea ecx, [esp + 0x114]
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
call fcn.00412da0
mov ebx, 1
mov eax, edi
mov byte [esp + 0x1a8], bl
call fcn.004481f0
push eax
xor ecx, ecx
lea esi, [esp + 0x12c]
mov edx, edi
call fcn.00423030
mov ecx, eax
lea eax, [esp + 0x10c]
lea edi, [esp + 0x160]
mov byte [esp + 0x1a8], 2
call fcn.0041ee30
mov esi, dword [esp + 0x14]
lea ecx, [esi + 0xd4]
push eax
mov byte [esp + 0x1ac], 3
mov dword [esp + 0x28], ecx
call fcn.00412930
mov edi, 0x10
cmp dword [esp + 0x174], edi
jb 0x451ee3
mov ecx, dword [esp + 0x160]
push ecx
call fcn.00464d3e
add esp, 4
xor ebx, ebx
mov dword [esp + 0x174], 0xf
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
cmp dword [esp + 0x13c], edi
jb 0x451f17
mov edx, dword [esp + 0x128]
push edx
call fcn.00464d3e
add esp, 4
mov dword [esp + 0x13c], 0xf
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
cmp dword [esp + 0x120], edi
jb 0x451f49
mov eax, dword [esp + 0x10c]
push eax
call fcn.00464d3e
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea eax, [esi + 0xf0]
mov dword [eax], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, 0xf
mov dword [esi + 0xf8], ecx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
mov dword [esi + 0x104], 0x20
mov dl, byte [0x49adcc]
mov byte [esp + 0x9c], bl
mov dword [esp + 0xb0], eax
mov byte [esp + 0x9c], dl
cmp eax, edi
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xac], 1
jae 0x451fc3
lea eax, [esp + 0x9c]
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x9c]
lea edi, [esp + 0x144]
mov byte [esp + 0x1a8], 5
call fcn.00414470
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b4], 6
call fcn.0040d140
mov esi, 0x10
cmp dword [esp + 0x158], esi
jb 0x45201d
mov eax, dword [esp + 0x144]
push eax
call fcn.00464d3e
add esp, 4
mov dword [esp + 0x158], 0xf
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0xb0], esi
jb 0x45204f
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00464d3e
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x21
mov dword [ecx + 0x100], eax
mov dl, byte [0x49adcc]
mov dword [esp + 0x1c], eax
mov eax, 0xf
mov byte [esp + 0xb8], bl
mov dword [esp + 0xcc], eax
mov byte [esp + 0xb8], dl
cmp eax, esi
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xc8], 1
jae 0x4520a4
lea eax, [esp + 0xb8]
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0xb8]
lea edi, [esp + 0x17c]
mov byte [esp + 0x1a8], 7
call fcn.00414470
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b4], 8
call fcn.0040d140
mov esi, 0x10
cmp dword [esp + 0x190], esi
jb 0x4520fe
mov eax, dword [esp + 0x17c]
push eax
call fcn.00464d3e
add esp, 4
mov byte [esp + 0x1a8], 4
mov dword [esp + 0x190], 0xf
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
cmp dword [esp + 0xcc], esi
jb 0x452138
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.00464d3e
add esp, 4
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea edi, [ecx + eax + 1]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [ecx + 0x108], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [ecx + 0xfc], ebx
mov eax, dword [edx]
xor esi, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
jle 0x45224a
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], esi
add esi, dword [ecx]
cmp esi, eax
jle 0x452190
mov esi, eax
push ebx
lea edx, [esi - 1]
push 0x10
lea ecx, [esp + 0x6c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00412b80
mov eax, dword [esp + 0x64]
mov ecx, 0x10
cmp dword [esp + 0x78], ecx
jae 0x4521c9
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x74], ecx
cmp dword [esp + 0x78], ecx
jae 0x4521f6
lea eax, [esp + 0x64]
mov byte [eax + 0x10], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b4], 9
call fcn.0040d140
mov byte [esp + 0x1a8], 4
cmp dword [esp + 0x78], 0x10
jb 0x452231
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00464d3e
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
inc dword [esp + 0x38]
add edi, 0x10
cmp esi, eax
jl 0x452180
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x10c], edi
mov edi, 0xf
mov dword [ecx + 0xfc], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov byte [esp + 0x1a8], 0xa
push ebx
push 0x20
lea ecx, [esp + 0x88]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00412b80
mov eax, dword [esp + 0x80]
mov esi, 0x10
cmp dword [esp + 0x94], esi
jae 0x4522b3
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x28]
push 0x20
push ecx
push eax
call fcn.004690f0
mov eax, dword [esp + 0x8c]
add esp, 0xc
mov dword [esp + 0x90], 0x20
cmp dword [esp + 0x94], esi
jae 0x4522e5
lea eax, [esp + 0x80]
mov byte [eax + 0x20], bl
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b4], 0xb
call fcn.0040d140
mov byte [esp + 0x1a8], 0xa
cmp dword [esp + 0x94], esi
jb 0x452325
mov eax, dword [esp + 0x80]
push eax
call fcn.00464d3e
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xdc]
push ecx
lea ecx, [esp + 0x54]
call fcn.0040d140
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov eax, edi
mov byte [esp + 0xf0], bl
mov dword [esp + 0x104], eax
mov dword [esp + 0xf0], ecx
mov dword [esp + 0x100], 4
cmp eax, esi
jae 0x45236c
lea ecx, [esp + 0xf0]
mov byte [ecx + 4], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b4], 0xc
call fcn.0040d140
mov byte [esp + 0x1a8], 0xa
cmp dword [esp + 0x104], esi
jb 0x4523ac
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00464d3e
add esp, 4
mov esi, dword [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push esi
mov byte [ecx], bl
call fcn.00412a40
mov edi, dword [esp + 0x30]
call fcn.00453360
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push esi
mov byte [ecx], bl
call fcn.00412a40
call fcn.00453250
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jae 0x452409
lea eax, [esp + 0x48]
mov edx, dword [esp + 0x58]
push edx
push eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
push edi
call fcn.00453510
cmp dword [esp + 0x5c], esi
jb 0x45242e
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0xe8], esi
jb 0x452457
mov edx, dword [esp + 0xd4]
push edx
call fcn.00464d3e
add esp, 4
mov dword [esp + 0x1a8], 0xffffffff
cmp byte [esp + 0x34], bl
je 0x4524c6
mov ecx, dword [esp + 0x30]
mov eax, SysReAllocStringLen
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x4524c6
cmp eax, 0x80000000
jle 0x4524c6
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x4524c6
mov eax, dword [ecx + 4]
lea esi, [ecx + 4]
cmp eax, ebx
jne 0x4524bf
push ebx
push ebx
call fcn.0041e010
mov ecx, eax
add esp, 8
mov edx, ecx
xor eax, eax
lock cmpxchg dword [esi], edx
mov esi, eax
cmp esi, ebx
je 0x4524bd
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4524bf
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 0xc