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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, 1
push 0x90
mov dword [esp + 0x14], ebx
call fcn.652441c0
mov esi, dword [esp + 0x28]
mov edi, eax
xor ebp, ebp
add esp, 4
xor eax, eax
cmp edi, ebp
mov dword [esi], edi
je 0x65203b08
mov ecx, 0x24
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov dword [eax + 0x14], ecx
mov edx, dword [esi]
mov eax, dword [edi + 6]
mov dword [edx + 0x20], eax
mov ecx, dword [esi]
mov edx, dword [edi + 0xa]
mov dword [ecx + 0x24], edx
mov eax, dword [esi]
mov cx, word [edi]
mov word [eax + 0x40], cx
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x6520372d
mov ecx, dword [edi + 0xa]
mov edx, dword [edi + 6]
push ecx
mov ecx, dword [esi]
push edx
push eax
mov eax, dword [esp + 0x54]
push eax
add ecx, 0xc
push ecx
call fcn.65234a30
add esp, 0x14
jmp 0x65203732
mov edx, dword [esi]
mov dword [edx + 0xc], ebp
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov eax, dword [esp + 0x34]
mov dword [edx + 0x10], eax
mov edx, dword [esi]
mov eax, dword [esp + 0x38]
mov dword [edx], eax
mov dl, byte [edi + 0x1a]
mov eax, dword [esi]
shr dl, 2
xor dl, byte [eax + 0x30]
and dl, 1
xor byte [eax + 0x30], dl
mov dl, byte [edi + 0x1a]
mov eax, dword [esi]
shr dl, 4
shl dl, 2
xor dl, byte [eax + 0x30]
and dl, 4
xor byte [eax + 0x30], dl
mov dl, byte [edi + 0x1a]
mov eax, dword [esi]
shr dl, 3
shl dl, 1
xor dl, byte [eax + 0x30]
and dl, 2
xor byte [eax + 0x30], dl
mov dl, byte [edi + 0x1a]
mov eax, dword [esi]
shr dl, 5
shl dl, 3
xor dl, byte [eax + 0x30]
and dl, 8
xor byte [eax + 0x30], dl
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x44], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x40]
mov dword [eax + 0x48], edx
mov eax, dword [esi]
mov dword [eax + 0x3c], ebp
mov ax, word [edi]
cmp ax, 8
jge 0x652037c6
mov edx, dword [esi]
mov dword [edx + 0x84], 0x3c
jmp 0x652037e7
cmp ax, 0x10
jge 0x652037dc
mov eax, dword [edi + 0x24]
mov edx, dword [esi]
imul eax, eax, 0x3c
mov dword [edx + 0x84], eax
jmp 0x652037e7
mov eax, dword [esi]
mov edx, dword [edi + 0x38]
mov dword [eax + 0x84], edx
cmp word [edi], 0x10
jle 0x652037fb
mov eax, dword [edi + 0x40]
cmp eax, ebp
je 0x652037fb
mov edx, dword [esi]
mov dword [edx + 0x28], eax
jmp 0x65203803
mov eax, dword [esi]
mov edx, dword [edi + 0xa]
mov dword [eax + 0x28], edx
cmp word [edi], 0x1f5e
jl 0x65203818
mov eax, dword [edi + 0x7a]
cmp eax, ebp
je 0x65203818
mov edx, dword [esi]
mov dword [edx + 0x2c], eax
jmp 0x65203820
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov dword [eax + 0x2c], edx
cmp word [edi], 0x10
jge 0x65203834
mov eax, dword [esi]
mov dword [eax + 0x88], 1
jmp 0x6520383f
mov edx, dword [esi]
mov eax, dword [edi + 0x3c]
mov dword [edx + 0x88], eax
cmp word [edi], 0x1784
jl 0x65203853
mov eax, dword [esi]
xor edx, edx
mov dl, byte [edi + 0x44]
and edx, 1
mov dword [eax + 0x78], edx
test byte [edi + 0x1a], 0x20
je 0x65203861
mov edx, dword [esi]
mov dword [edx + 0x88], ebp
cmp word [edi], 9
jl 0x65203885
cmp dword [edi + 0x28], ebp
je 0x65203885
push ecx
call fcn.652594b0
mov ecx, dword [edi + 0x28]
add esp, 4
cmp ecx, eax
ja 0x6520387e
mov eax, ecx
mov ecx, dword [esi]
mov dword [ecx + 0x34], eax
jmp 0x6520388a
mov edx, dword [esi]
mov dword [edx + 0x34], ebp
cmp word [edi], 9
jge 0x65203897
mov eax, dword [esi]
mov dword [eax + 0x38], ebp
jmp 0x652038ae
mov edi, dword [edi + 0x2c]
cmp edi, ebp
jne 0x652038a9
mov ecx, dword [esi]
mov dword [ecx + 0x38], 0x14
jmp 0x652038ae
mov edx, dword [esi]
mov dword [edx + 0x38], edi
mov eax, dword [esi]
mov dword [eax + 0x80], ebp
mov ecx, dword [esi]
mov dword [ecx + 0x4c], ebp
mov edx, dword [esi]
mov dword [edx + 0x50], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
mov dword [eax + 0x7c], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.65244110
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
add esp, 4
push ebp
push 1
push ebp
push ebp
mov dword [ecx + 0x68], eax
call edi
mov edx, dword [esi]
push ebp
push 1
push ebp
push ebp
mov dword [edx + 0x54], eax
call edi
mov ecx, dword [esi]
mov dword [ecx + 0x58], eax
mov edi, dword [esi]
push 0x200
call fcn.65244110
add esp, 4
cmp eax, ebp
jne 0x65203ab6
mov edx, dword [edi + 0x20]
push 0x1a05
push edx
call fcn.652659d0
add esp, 8
mov dword [esp + 0x10], ebp
mov ebx, ebp
mov edx, dword [esi]
cmp dword [edx + 0x34], ebp
jbe 0x65203abe
cmp ebx, ebp
je 0x65203a10
mov eax, dword [str.Worker]
mov cx, word [0x6528b3e0]
mov dword [esp + 0x14], eax
mov al, byte [0x6528b3e2]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x14]
mov word [esp + 0x18], cx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x65203965
sub eax, edi
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x34]
test eax, eax
jbe 0x65203a0e
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x65203a0e
mov ecx, dword [esp + 0x24]
push 0xa
lea edx, [esp + ecx + 0x18]
push edx
push ebp
call fcn.6527d614
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea edi, [ebp + ebp*2]
push edx
shl edi, 2
call fcn.65258ce0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
mov dword [edx + edi + 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx + edi + 4]
add esp, 0x1c
test eax, eax
jne 0x65203a00
dec ebp
js 0x652039f8
lea edi, [ebp + ebp*2]
lea ebx, [ebp + 1]
shl edi, 2
sub ebp, ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + edi + 4]
push ecx
call fcn.65259670
add esp, 4
sub edi, 0xc
dec ebx
jne 0x652039e0
mov dword [esp + 0x10], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
inc ebp
cmp ebp, eax
jb 0x65203980
xor ebp, ebp
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
xor ebx, ebx
cmp ecx, ebp
jbe 0x65203a8b
jmp 0x65203a20
mov eax, dword [esp + 0x10]
test eax, eax
je 0x65203af5
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
push 0
push str.Worker
mov dword [edx + ebp], 0
mov eax, dword [esi]
push eax
push 0x1f40
push 0
push 0x65202f50
call fcn.652662d0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x68]
mov dword [edx + ebp + 8], eax
mov edi, dword [esi]
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + ebp + 8]
add esp, 0x18
test ecx, ecx
jne 0x65203a7c
lea eax, [ebx - 1]
call fcn.65202fe0
mov dword [esp + 0x10], 0
mov ecx, dword [esi]
mov eax, dword [ecx + 0x34]
inc ebx
add ebp, 0xc
cmp ebx, eax
jb 0x65203a20
xor ebp, ebp
cmp dword [esp + 0x10], ebp
je 0x65203af7
mov edx, dword [esi]
add edx, 0x5c
push edx
call fcn.65265d90
mov eax, dword [esi]
add eax, 0x6c
push eax
call fcn.65265d90
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [edi + 0x1c], eax
jmp 0x6520392d
cmp ebx, ebp
je 0x65203a10
mov eax, dword [edx + 4]
push ebp
push str.Apply
push 1
push eax
call fcn.65258ce0
mov ecx, dword [esi]
mov dword [ecx + 0x18], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
add esp, 0x10
cmp eax, ebp
jne 0x65203a10
mov dword [esp + 0x10], ebp
jmp 0x65203a10
xor ebp, ebp
mov ecx, dword [esi]
push ecx
call fcn.652440f0
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret