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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
and eax, 0x10
push edi
mov dword [ebp - 8], eax
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x18], edx
lea edi, [edx - 1]
mov dword [ebp - 0x10], ecx
cmp edi, 2
jl 0x52d42b
lea ecx, [edi*8]
lea edx, [edi + edi*2]
sub ecx, edi
shl edx, 3
shl ecx, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov edx, dword [ebp - 0x10]
test byte [edi + edx], 4
mov edx, dword [ebp - 0xc]
je 0x52d412
test eax, eax
je 0x52d3cc
mov eax, dword [esi + 0x2c]
mov ecx, 0x8000
mov esi, dword [ebp - 4]
or cx, word [eax + esi + 4]
mov eax, dword [ebx + 0x5c]
mov esi, dword [ebp + 8]
mov word [eax + edi*2], cx
jmp 0x52d40c
mov eax, dword [ebx + 0x58]
mov esi, dword [edx + eax + 4]
test esi, esi
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
je 0x52d40f
push dword [ebp - 0x14]
mov dword [edx + eax + 4], 0
xor ecx, ecx
mov eax, dword [ebx + 0x58]
mov dword [edx + eax], 0
mov eax, dword [ebx + 0x5c]
mov word [eax + edi*2], cx
mov eax, dword [ebx + 0x60]
inc dword [eax + edi*4]
call fcn.004f5d5f
mov edx, dword [ebp - 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
dec edi
sub ecx, 0x1c
sub edx, 0x18
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
cmp edi, 2
jge 0x52d3a0
mov edx, dword [ebp - 0x18]
test eax, eax
je 0x52d437
cmp dword [ebx + 0x20], edx
jae 0x52d437
mov dword [ebx + 0x20], edx
mov ecx, dword [esi + 0x40]
test ecx, 0x20000
je 0x52d482
mov eax, dword [esi + 0x24]
test eax, eax
je 0x52d472
mov dword [eax], 0xffffffff
test dword [ebx + 0xc], 0x200000
je 0x52d46b
test dword [ebp + 0xc], 0x200000
je 0x52d472
mov eax, dword [esi + 0x24]
mov dword [eax + 4], 0
mov dword [esi + 0x24], 0
or dword [esi + 0x40], 1
mov dword [esi + 0x3c], 0
jmp 0x52d58a
test cl, 1
jne 0x52d58a
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x52d49f
push eax
push esi
call fcn.00526060
add esp, 8
test dword [ebx + 0xc], 0x80000
jne 0x52d4f7
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
mov dword [ebp + 8], eax
cmp eax, 1
jb 0x52d4f1
lea edi, [ecx + 0xc]
mov ecx, dword [edi]
test byte [ecx + 6], 4
je 0x52d4dd
cmp dword [ecx + 8], 1
je 0x52d4dd
push ecx
call fcn.004f5d5f
mov edx, dword [ebp - 0x18]
add esp, 4
jmp 0x52d4e5
mov eax, dword [edx + 0x74]
mov dword [ecx], eax
mov dword [edx + 0x74], ecx
add edi, 8
sub dword [ebp + 8], 1
jne 0x52d4c1
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
mov eax, dword [esi]
lea edi, [esi + 0x14]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 1
test eax, eax
jne 0x52d54c
push edi
call fcn.0052df00
mov eax, dword [edi]
add esp, 4
cmp dword [ebx + 0x34], 0
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x44], 0
mov dword [ebp + 0xc], 0
je 0x52d57f
push dword [ebx + 0x94]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x52d57f
mov dword [eax + 4], 0
mov eax, dword [esi]
and dword [eax + 0x40], 0xffffffef
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], ecx
push dword [edi]
call fcn.0052de10
push dword [esi + 0x20]
call fcn.0052de10
push dword [esi + 0x24]
call fcn.004f5d5f
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0052de10
add esp, 4
test byte [ebp + 0xc], 0x20
je 0x52d599
push esi
call fcn.004f5d5f
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret