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

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov ecx, 0x20
push ebp
push esi
push edi
mov eax, dword [ebx + 4]
cmp eax, ecx
mov dword [ebx + 0x78], 0
cmova eax, ecx
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x54], eax
xor ecx, ecx
mov eax, dword [ebx]
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 1
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x90], 0xffffffff
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x58], 0
cmp eax, dword [ebx + 0x20]
je 0x10135452
lea edi, [ebx + 0xd0]
lea ebp, [ecx + 0x20]
mov ecx, dword [edi]
test ecx, ecx
je 0x10135428
mov dword [edi], 0
nop
mov eax, dword [edi - 8]
mov esi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
mov ecx, esi
test esi, esi
jne 0x10135410
add edi, 0x28
sub ebp, 1
jne 0x10135402
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
test edx, edx
je 0x1013544d
mov eax, dword [ebx + 0x14]
push edx
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebx + 0x58]
add esp, 8
mov dword [ebx + 0x5c], ebp
mov eax, dword [ebx]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x98], eax
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
mov dword [ebx + 0x9c], 0
lea esi, [ebx + eax*8]
mov dword [ebx + 0xa0], 0
lea eax, [ecx + 1]
mov dword [ebx + 0xa4], 0
mov ecx, esi
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x58], eax
call fcn.10133b10
mov ebp, eax
test ebp, ebp
jne 0x101355af
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101354ea
call ebp
test eax, eax
mov ebp, 1
cmovne ebp, eax
test ebp, ebp
jne 0x101355af
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x1c]
call edi
test eax, eax
jne 0x10135507
call ebp
test eax, eax
mov ebp, 1
cmovne ebp, eax
test ebp, ebp
jne 0x101355af
push esi
call fcn.10134f40
mov ebp, eax
test ebp, ebp
je 0x101355c1
mov dword [ebx + 0x44], 0
lea esi, [ebx + 0xe4]
mov dword [esp + 0x10], 0x20
nop dword [eax]
cmp dword [esi - 4], 0
je 0x10135563
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10135549
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1013555b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi - 4]
call fcn.10108c60
mov eax, dword [esi]
test eax, eax
je 0x10135582
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1013557c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10135582
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x101355a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1013559c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101355a3
mov dword [esi + 4], 0
add esi, 0x28
sub dword [esp + 0x10], 1
jne 0x10135530
test ebp, ebp
jle 0x101355ba
movzx ebp, bp
or ebp, 0x80070000
test ebp, ebp
je 0x101355c1
mov dword [ebx + 0x40], ebp
cmp dword [ebx + 0x38], 0
jne 0x101355da
cmp dword [ebx + 0x40], 0
jne 0x101355da
cmp dword [ebx + 0x3c], 0
jne 0x101355da
mov dword [ebx + 0x44], 0
xor eax, eax
cmp dword [ebx + 0x44], eax
pop edi
cmovne ebp, eax
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret