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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x6476c894
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x6476c894
mov edx, dword [esp + 0xa4]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0xa4]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x34], ebx
mov edi, dword [esp + 0xa0]
cmp word [edi], 0
jle 0x6476c9d9
mov eax, dword [edi + 0xc]
movsx eax, word [eax]
mov dword [esp + 0x44], eax
test eax, eax
js 0x6476c974
xor ebp, ebp
mov dword [esp + 0x4c], 0
mov esi, ebp
mov edi, dword [esp + 0xa0]
mov eax, dword [edi + 4]
mov ebp, dword [esp + 0x44]
lea ebp, [eax + ebp*8]
mov dword [esp + 0x3c], ebp
lea edx, [eax + esi*8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov ebx, eax
mov dword [esp + 0x64], ecx
mov cl, byte [esp + 0x38]
shl ebx, cl
sub ebx, dword [esp + 0x34]
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x64]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov edi, dword [ebp]
mov dword [esp + 0x48], edi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x40], ebp
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0xa0]
mov edi, dword [ebp + 8]
add esi, edi
mov dword [esp + 0x30], esi
mov cl, byte [esi]
mov byte [esp + 0x20], cl
and ecx, 3
cmp ecx, 2
je 0x6476c974
test ecx, ecx
je 0x6476c83c
mov ebx, dword [esp + 0xa8]
mov dword [esp + 4], ebx
lea edi, [esp + 0x60]
mov dword [esp], edi
mov dword [esp + 0x18], edx
mov ebp, dword [esp + 0xa4]
call dword [ebp]
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x6476c764
cmp edx, dword [esp + 0x3c]
jae 0x6476c8fa
mov ecx, dword [esp + 0x38]
lea ebx, [edx + 8]
mov eax, dword [esp + 0x30]
mov al, byte [eax + 1]
mov byte [esp + 0x1f], al
and eax, 3
jne 0x6476c770
mov edi, dword [edx + 8]
shl edi, cl
sub edi, dword [esp + 0x34]
mov dword [esp + 0x58], edi
mov ebp, dword [edx + 0xc]
shl ebp, cl
sub ebp, dword [esp + 0x34]
mov dword [esp + 0x5c], ebp
cmp dword [esp + 0x3c], ebx
jbe 0x6476c9e0
lea ebx, [edx + 0x10]
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x30]
add esi, 2
mov eax, dword [esp + 0x30]
mov bl, byte [eax + 2]
and ebx, 3
mov eax, dword [edx + 0x10]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov edx, dword [edx + 0x14]
shl edx, cl
sub edx, dword [esp + 0x34]
mov dword [esp + 0x74], edx
cmp ebx, 1
je 0x6476c9ed
test ebx, ebx
jne 0x6476c974
lea ebx, [esp + 0x58]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ecx
mov ebx, dword [esp + 0x48]
mov ecx, edi
mov edi, dword [esp + 0x40]
jmp 0x6476c71b
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
jbe 0x6476c918
add ebx, 8
inc esi
mov al, byte [esi]
and eax, 3
mov ebp, eax
mov eax, dword [ebx]
mov cl, byte [esp + 0x38]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov edx, dword [ebx + 4]
shl edx, cl
sub edx, dword [esp + 0x34]
mov dword [esp + 0x74], edx
cmp ebp, 1
je 0x6476c990
test ebp, ebp
jne 0x6476c974
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
add eax, ecx
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
mov dword [esp + 0x78], eax
add edx, ebp
mov ebp, edx
shr ebp, 0x1f
add edx, ebp
sar edx, 1
mov dword [esp + 0x7c], edx
mov ebp, dword [esp + 0xa8]
mov dword [esp + 8], ebp
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp], edi
mov edx, dword [esp + 0xa4]
call dword [edx + 8]
test eax, eax
je 0x6476c6c0
lea esi, [esi]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
dec al
je 0x6476c8a4
lea eax, [edx + 0x10]
cmp dword [esp + 0x3c], eax
jb 0x6476c974
mov edi, dword [esp + 0x30]
mov al, byte [edi + 2]
and eax, 3
cmp al, 2
jne 0x6476c974
lea ebx, [edx + 0x18]
mov eax, dword [edx + 8]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0xc]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 0x10]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x14]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
cmp dword [esp + 0x3c], ebx
jb 0x6476c9f7
mov eax, dword [edx + 0x18]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x1c]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x7c], eax
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0xc], ebp
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
lea edx, [esp + 0x70]
mov dword [esp + 4], edx
lea eax, [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0xa4]
call dword [edi + 0xc]
test eax, eax
mov ecx, dword [esp + 0x18]
jne 0x6476c764
add dword [esp + 0x30], 3
mov edx, ebx
jmp 0x6476c8f0
mov esi, dword [esp + 0x48]
mov cl, byte [esp + 0x38]
shl esi, cl
sub esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
shl ebp, cl
sub ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
movzx edi, byte [edi + ecx]
and edi, 3
mov ecx, edi
dec cl
je 0x6476c984
add ebx, esi
mov esi, ebx
shr esi, 0x1f
add esi, ebx
sar esi, 1
add eax, ebp
mov ecx, eax
shr ecx, 0x1f
lea ebp, [ecx + eax]
sar ebp, 1
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], esi
sub edx, 8
dec dword [esp + 0x30]
jmp 0x6476c5ee
mov eax, 6
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx + 8]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0xc]
shl eax, cl
sub eax, dword [esp + 0x34]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0xa8]
mov dword [esp + 4], edx
lea edi, [esp + 0x78]
mov dword [esp], edi
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0xa4]
call dword [ebp + 4]
test eax, eax
mov ecx, dword [esp + 0x18]
jne 0x6476c764
inc dword [esp + 0x30]
mov edx, ebx
cmp dword [esp + 0x3c], edx
ja 0x6476c628
mov edx, dword [esp + 0xa8]
mov dword [esp + 4], edx
lea ecx, [esp + 0x60]
mov dword [esp], ecx
mov ebx, dword [esp + 0xa4]
call dword [ebx + 4]
jmp 0x6476c93c
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 8], ebx
lea edi, [esp + 0x60]
mov dword [esp + 4], edi
mov dword [esp], edx
mov ebx, dword [esp + 0xa4]
call dword [ebx + 8]
test eax, eax
jne 0x6476c764
mov esi, dword [esp + 0x44]
inc esi
inc dword [esp + 0x4c]
mov ebx, dword [esp + 0xa0]
movsx eax, word [ebx]
cmp eax, dword [esp + 0x4c]
jle 0x6476c9d9
mov eax, dword [ebx + 0xc]
mov ebx, dword [esp + 0x4c]
movsx eax, word [eax + ebx*2]
mov dword [esp + 0x44], eax
test eax, eax
jns 0x6476c567
mov eax, 0x14
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [esp + 0x3c], 8
jmp 0x6476c880
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 8], ebx
lea edi, [esp + 0x70]
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0xa4]
call dword [ebx + 8]
test eax, eax
mov ecx, dword [esp + 0x18]
jne 0x6476c764
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x48]
jmp 0x6476c8f0
xor eax, eax
jmp 0x6476c764
lea edx, [esp + 0x58]
mov dword [esp + 0x40], edx
jmp 0x6476c91c
lea edx, [esp + 0x58]
mov dword [esp + 0x40], edx
jmp 0x6476c99c
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0xc], ebp
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
mov edx, dword [esp + 0xa4]
call dword [edx + 0xc]
jmp 0x6476c93c