Function at 0x10005be5
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10025014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x428]
xor ebx, ebx
push esi
push ebx
push eax
mov dword [ebp - 0x434], ebx
call fcn.1000a7f0
add esp, 0xc
lea eax, [ebp - 0x320]
mov edi, ebx
push esi
push ebx
push eax
call fcn.1000a7f0
add esp, 0xc
lea edx, [ebp - 0x320]
call fcn.10007a85
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
je 0x10005ede
cmp byte [ebp - 0x320], bl
je 0x10005ede
mov esi, dword [str.mwwqr_0z]
test esi, esi
je 0x10005d2d
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1000a7f0
add esp, 0xc
lea ecx, [ebp - 0x110]
push esi
mov esi, 0x104
mov edx, esi
call fcn.100010e3
lea edx, [ebp - 0x110]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10005c92
sub edx, ecx
lea ecx, [ebp - 0x110]
call fcn.1000773e
push ecx
push 0x20
push dword [ebp - 0x430]
lea edx, [ebp - 0x320]
lea ecx, [ebp - 0x110]
call fcn.10007127
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10005d17
push esi
lea eax, [ebp - 0x218]
mov dword [0x10029718], edi
push 0
push eax
call fcn.1000a7f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [0x10021b60]
push 0x10029830
push str._s_s
push esi
push eax
call fcn.10001176
add esp, 0x14
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.1000797b
cmp eax, 1
je 0x10005dad
mov esi, dword [ebx*4 + 0x10021ba4]
inc ebx
test esi, esi
jne 0x10005c60
mov esi, dword [str.mwwqr_0z]
xor ebx, ebx
test esi, esi
je 0x10005ed3
mov edi, 0x104
push edi
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1000a7f0
add esp, 0xc
lea ecx, [ebp - 0x110]
mov edx, edi
push esi
call fcn.100010e3
lea edx, [ebp - 0x110]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10005d65
sub edx, ecx
lea ecx, [ebp - 0x110]
call fcn.1000773e
push ecx
push 0x40
push dword [ebp - 0x430]
lea edx, [ebp - 0x320]
lea ecx, [ebp - 0x110]
call fcn.10007127
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10005db4
mov esi, dword [ebx*4 + 0x10021ba4]
inc ebx
test esi, esi
jne 0x10005d3c
jmp 0x10005ed7
mov eax, edi
jmp 0x10005ee1
push edi
lea eax, [ebp - 0x218]
mov dword [0x10029718], esi
push 0
push eax
call fcn.1000a7f0
add esp, 0xc
lea ecx, [ebp - 0x218]
mov edx, edi
push dword [0x10021aac]
call fcn.100010e3
lea edx, [ebp - 0x218]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10005de8
sub edx, ecx
lea ecx, [ebp - 0x218]
call fcn.1000773e
push esi
lea eax, [ebp - 0x218]
push eax
push 0x10029720
push str._s_s__d
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.10001176
or dword [ebp - 0x42c], 0xffffffff
lea eax, [ebp - 0x430]
or dword [ebp - 0x430], 0xffffffff
lea edx, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x428]
call fcn.10007b29
add esp, 0x1c
mov dword [ebp - 0x434], eax
cmp eax, 0xffffffff
jne 0x10005e57
push 0xfffffffffffffffd
pop eax
jmp 0x10005ee1
mov esi, dword [ebp - 0x430]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10005e8a
test esi, esi
je 0x10005e75
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call edi
cmp dword [ebp - 0x42c], 0
je 0x10005e86
push dword [ebp - 0x42c]
call edi
push 0xfffffffffffffffc
jmp 0x10005e51
test esi, esi
je 0x10005e98
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call edi
push 0xbb8
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x42c]
and dword [ebp - 0x434], 0
call edi
mov eax, dword [ebp - 0x434]
jmp 0x10005ee1
test edi, edi
jne 0x10005ecb
push 0xfffffffffffffffe
jmp 0x10005e51
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f85
leave
ret