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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa4]
test esi, esi
jne 0x52d3c5
mov eax, 6
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x52d3b5
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov edx, dword [edx + 0x10]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
cmp word [esi], 0
jle 0x52d8e9
mov edi, dword [esp + 0xa0]
mov eax, dword [edi + 0xc]
movsx eax, word [eax]
mov dword [esp + 0x44], eax
test eax, eax
js 0x52d6a5
xor ebp, ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], ebp
mov ebx, dword [esp + 0xa0]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
mov eax, dword [ebx + 4]
lea edx, [eax + edi*8]
lea esi, [eax + esi*8]
mov dword [esp + 0x3c], esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x64], ecx
mov ebx, eax
mov cl, byte [esp + 0x38]
mov eax, dword [esp + 0x34]
shl ebx, cl
sub ebx, eax
mov eax, dword [esp + 0x64]
shl eax, cl
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
sub eax, ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
mov esi, dword [esi]
mov ebp, dword [edi + 4]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x58], esi
mov esi, dword [edi + 8]
mov edi, dword [esp + 0x30]
add edi, esi
mov dword [esp + 0x30], edi
mov cl, byte [edi]
mov byte [esp + 0x20], cl
and ecx, 3
cmp ecx, 2
je 0x52d6a5
test ecx, ecx
je 0x52d7b0
mov ebx, dword [esp + 0xa8]
lea esi, [esp + 0x60]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x18], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [edi]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x52d3ba
cmp edx, dword [esp + 0x3c]
jae 0x52d789
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
lea ebx, [edx + 8]
mov al, byte [eax + 1]
mov byte [esp + 0x1f], al
and eax, 3
jne 0x52d6b0
mov edi, dword [edx + 8]
mov ebp, dword [edx + 0xc]
shl edi, cl
shl ebp, cl
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x34]
sub edi, eax
sub ebp, esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebp
cmp dword [esp + 0x3c], ebx
jbe 0x52d88c
mov eax, dword [esp + 0x30]
lea ebx, [edx + 0x10]
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x30]
mov bl, byte [eax + 2]
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
and ebx, 3
shl eax, cl
shl edx, cl
sub eax, dword [esp + 0x34]
sub edx, dword [esp + 0x34]
add esi, 2
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
cmp ebx, 1
je 0x52d8f0
test ebx, ebx
jne 0x52d6a5
lea ebx, [esp + 0x58]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ebx
mov ecx, edi
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
jmp 0x52d5d5
inc esi
add ebx, 8
mov cl, byte [esp + 0x38]
mov edx, dword [esp + 0x34]
mov al, byte [esi]
and eax, 3
mov ebp, eax
mov eax, dword [ebx]
shl eax, cl
sub eax, edx
mov dword [esp + 0x70], eax
mov edx, dword [ebx + 4]
shl edx, cl
mov ecx, dword [esp + 0x34]
sub edx, ecx
cmp ebp, 1
mov dword [esp + 0x74], edx
je 0x52d8a0
test ebp, ebp
jne 0x52d6a5
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
add eax, ecx
add edx, ebp
mov ecx, eax
mov ebp, edx
shr ecx, 0x1f
mov dword [esp], edi
shr ebp, 0x1f
add eax, ecx
sar eax, 1
add edx, ebp
sar edx, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov ebp, dword [esp + 0xa8]
lea eax, [esp + 0x78]
mov edx, dword [esp + 0xa4]
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call dword [edx + 8]
test eax, eax
jne 0x52d3ba
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
cmp dword [esp + 0x3c], ebx
ja 0x52d590
mov ebx, dword [esp + 0xa8]
lea esi, [esp + 0x60]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0xa4]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [ebp + 8]
test eax, eax
jne 0x52d3ba
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
inc ebx
inc edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x30], edx
movsx eax, word [ebx]
cmp eax, dword [esp + 0x4c]
jle 0x52d8e9
mov ebp, dword [esp + 0xa0]
mov edx, dword [esp + 0x4c]
mov eax, dword [ebp + 0xc]
movsx eax, word [eax + edx*2]
mov dword [esp + 0x44], eax
test eax, eax
jns 0x52d424
mov eax, 0x14
jmp 0x52d3ba
dec al
je 0x52d810
lea eax, [edx + 0x10]
cmp dword [esp + 0x3c], eax
jb 0x52d6a5
mov ebx, dword [esp + 0x30]
mov al, byte [ebx + 2]
and eax, 3
cmp al, 2
jne 0x52d6a5
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x34]
shl eax, cl
sub eax, esi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0xc]
shl eax, cl
sub eax, edi
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 0x10]
shl eax, cl
sub eax, ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x14]
shl eax, cl
sub eax, esi
lea ebx, [edx + 0x18]
mov dword [esp + 0x74], eax
cmp dword [esp + 0x3c], ebx
jb 0x52d8fa
mov eax, dword [edx + 0x18]
mov edi, dword [esp + 0x34]
shl eax, cl
sub eax, edi
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x1c]
shl eax, cl
sub eax, ebp
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x7c], eax
lea edi, [esp + 0x78]
lea eax, [esp + 0x68]
lea ebp, [esp + 0x70]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x52d3ba
mov esi, dword [esp + 0x30]
mov edx, ebx
add esi, 3
mov dword [esp + 0x30], esi
cmp dword [esp + 0x3c], edx
ja 0x52d4ef
mov ebp, dword [esp + 0xa8]
lea eax, [esp + 0x60]
mov edx, dword [esp + 0xa4]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [edx + 4]
jmp 0x52d659
mov cl, byte [esp + 0x38]
mov edi, dword [esp + 0x48]
shl edi, cl
shl ebp, cl
mov ecx, dword [esp + 0x34]
sub edi, dword [esp + 0x34]
sub ebp, ecx
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x44]
mov cl, byte [esi + ebp]
and ecx, 3
dec cl
je 0x52d870
mov ebp, dword [esp + 0x40]
add ebx, edi
add ebp, eax
mov ecx, ebx
shr ecx, 0x1f
mov eax, ebp
shr eax, 0x1f
add ebx, ecx
sar ebx, 1
add eax, ebp
sar eax, 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x30]
sub edx, 8
dec ecx
mov dword [esp + 0x30], ecx
jmp 0x52d4b6
mov eax, dword [edx + 8]
mov ebp, dword [esp + 0x34]
shl eax, cl
sub eax, ebp
lea esi, [esp + 0x78]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0xc]
shl eax, cl
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0xa4]
sub eax, edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [edi + 4]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x52d3ba
mov edi, dword [esp + 0x30]
mov edx, ebx
inc edi
mov dword [esp + 0x30], edi
jmp 0x52d77f
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub ebx, 8
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x3c], ebx
jmp 0x52d7fe
lea edx, [esp + 0x58]
mov dword [esp + 0x40], edx
jmp 0x52d635
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0xa8]
mov edx, dword [esp + 0x40]
mov dword [esp + 8], ebx
lea edi, [esp + 0x70]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [ebx + 8]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x52d3ba
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x48]
jmp 0x52d77f
xor eax, eax
jmp 0x52d3ba
lea edx, [esp + 0x58]
mov dword [esp + 0x40], edx
jmp 0x52d8a8
lea eax, [esp + 0x70]
mov ebx, dword [esp + 0xa8]
lea esi, [esp + 0x60]
mov dword [esp + 4], eax
mov edi, dword [esp + 0xa4]
lea eax, [esp + 0x68]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [edi + 0xc]
jmp 0x52d659