Function at 0x413370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428730
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x430618]
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]
mov dword [ebp - 0x54], eax
xor eax, eax
mov esi, 0x468bc0
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], eax
call fcn.00413040
mov eax, dword [0x42ce70]
mov ecx, dword [str.ssecorPnepOwZ]
mov edx, dword [0x42ce6c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42ce7c]
mov dword [ebp - 0x28], edx
mov edx, dword [str.ssecorPetanimreTwZ]
mov dword [ebp - 0x2c], ecx
mov cx, word [0x42ce74]
mov dword [ebp - 0x3c], eax
mov ax, word [0x42ce88]
mov dword [ebp - 0x40], edx
mov edx, dword [0x42ce84]
mov word [ebp - 0x20], cx
mov ecx, dword [0x42ce80]
mov word [ebp - 0x30], ax
mov eax, dword [0x42ce90]
mov dword [ebp - 0x34], edx
mov edx, dword [str.esolCwZ]
mov dword [ebp - 0x38], ecx
mov cl, byte [0x42ce8a]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x2e], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413428
sub eax, edx
lea ecx, [ebp + eax - 0x2c]
lea eax, [ebp - 0x2c]
cmp eax, ecx
je 0x41344c
dec ecx
cmp eax, ecx
je 0x41344c
mov dl, byte [eax]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
inc eax
jmp 0x413438
lea eax, [ebp - 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413452
sub eax, edx
lea ecx, [ebp + eax - 0x40]
lea eax, [ebp - 0x40]
cmp eax, ecx
je 0x413476
dec ecx
cmp eax, ecx
je 0x413476
mov dl, byte [eax]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
inc eax
jmp 0x413462
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413480
sub eax, edx
lea ecx, [ebp + eax - 0x1c]
lea eax, [ebp - 0x1c]
cmp eax, ecx
je 0x4134a4
dec ecx
cmp eax, ecx
je 0x4134a4
mov dl, byte [eax]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
inc eax
jmp 0x413490
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2c]
push ecx
push str.ntdll.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
lea edx, [ebp - 0x40]
push edx
push str.ntdll.dll
mov dword [esi], eax
call edi
push eax
call ebx
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push str.ntdll.dll
call edi
push eax
call ebx
xor ebx, ebx
mov dword [esi + 8], eax
cmp dword [esi], ebx
je 0x413676
cmp dword [esi + 4], ebx
je 0x413676
cmp eax, ebx
je 0x413676
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x50]
push ecx
push eax
mov dword [esi + 0x50], eax
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp eax, ebx
je 0x413676
lea eax, [esi + 0x54]
push eax
call fcn.00412d50
cmp eax, ebx
je 0x413676
mov eax, 1
mov dword [ebp - 0x44], eax
xor edi, edi
mov dword [ebp - 0x4c], edi
cmp edi, dword [esi + 0x58]
jae 0x41366b
cmp eax, ebx
je 0x413676
cmp dword [ebp + 8], ebx
jne 0x413566
mov eax, edi
lea ecx, [esi + 0x54]
call fcn.00413d30
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 0x50]
jne 0x413660
cmp edi, dword [esi + 0x58]
jb 0x413575
push 0x80070057
call fcn.00406f80
mov ecx, dword [esi + 0x54]
push ebx
push ebx
push esi
lea eax, [edi + edi*2]
mov edx, dword [ecx + eax*4]
push 0x4130b0
lea eax, [ecx + eax*4]
push ebx
push ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x2c], ebx
call fcn.00416056
mov ebx, dword [ebp - 0x54]
add esp, 0x18
push 0
push 0
push esi
push 0x413180
push 0
push 0
mov dword [ebx], eax
call fcn.00416056
mov ecx, dword [ebx]
add esp, 0x18
mov dword [ebx + 4], eax
test ecx, ecx
je 0x4135c5
cmp ecx, 0xffffffff
jne 0x4135ce
test eax, eax
je 0x413627
cmp eax, 0xffffffff
je 0x413627
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4135e5
mov dword [ebp - 0x44], 0
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x48], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push 1
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [ebp - 0x4c]
jmp 0x41362e
mov dword [ebp - 0x44], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x413648
cmp eax, 0xffffffff
je 0x413648
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x413660
cmp eax, 0xffffffff
je 0x413660
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov eax, dword [ebp - 0x44]
inc edi
xor ebx, ebx
jmp 0x413537
cmp eax, ebx
je 0x413676
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x48]
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.00415554
mov esp, ebp
pop ebp
ret 8