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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ecx, dword [eax + 0x2c]
push esi
mov esi, dword [esp + 0x24]
push edi
mov ebx, 8
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 0x78]
mov edi, dword [esi + 0x4834]
dec edx
mov dword [esp + 0x18], edi
cmp ebp, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebx
jne 0x9684a5
mov ecx, dword [esi + 0x24]
and ecx, 7
je 0x968497
mov dword [esp + 0x10], ecx
mov ebx, ecx
mov ebp, dword [esi + 0x3c]
lea ecx, [edx + 1]
imul ebp, ecx
mov ecx, dword [esi + 0x20]
jmp 0x9684a8
mov ebp, dword [esi + 0x30]
lea ecx, [ecx + ebp*8]
mov dword [eax + 0x2c], ecx
mov eax, dword [esi + 0x7c]
dec eax
cmp edx, eax
jne 0x9684d0
mov eax, dword [esi + 0x28]
cdq
xor eax, edx
sub eax, edx
and eax, 0x80000007
jns 0x9684ca
dec eax
or eax, 0xfffffff8
inc eax
je 0x9684d0
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x58], 4
jne 0x968646
mov eax, dword [esi + 0x34]
cmp eax, 1
je 0x9684eb
cmp eax, 2
jne 0x968646
mov ebp, dword [esp + 0x2c]
xor eax, eax
test ebp, ebp
mov dword [esp + 0x28], eax
jle 0x968601
mov dword [esp + 0x30], edi
lea edi, [edi + ebx*2]
mov dword [esp + 0x34], edi
xor ecx, ecx
test ebx, ebx
jle 0x9685bf
mov ebp, dword [esp + 0x30]
jmp 0x96851c
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x34]
cmp edx, 1
mov edx, dword [esi + 0x30]
jne 0x96854a
mov edi, dword [esi + 0x3c]
imul edx, ecx
imul edi, eax
mov eax, dword [esp + 0x14]
add eax, edx
movzx dx, byte [eax + edi + 2]
movzx bx, byte [eax + edi]
add eax, edi
movzx di, byte [eax + 1]
jmp 0x96856b
mov edi, dword [esi + 0x3c]
imul edx, ecx
imul edi, eax
mov eax, dword [esp + 0x14]
add eax, edx
movzx dx, byte [eax + edi]
movzx bx, byte [eax + edi + 2]
add eax, edi
movzx di, byte [eax + 1]
movsx eax, di
add ebp, 2
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
movsx eax, bx
lea ebx, [eax + eax*8]
lea ebx, [eax + ebx*2]
lea eax, [eax + ebx*4]
lea edi, [eax + edi*2]
movsx eax, dx
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
lea edx, [edi + eax - 0x7f80]
mov eax, dword [esp + 0x10]
sar edx, 8
mov word [ebp - 2], dx
inc ecx
cmp ecx, eax
jl 0x968518
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
cmp ebx, 8
jge 0x9685da
mov ecx, 8
mov edx, edi
sub ecx, ebx
mov bp, word [edi - 2]
mov word [edx], bp
add edx, 2
dec ecx
jne 0x9685cd
mov ebp, dword [esp + 0x30]
inc eax
add ebp, 0x10
add edi, 0x10
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x2c]
cmp eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], edi
jl 0x968508
mov edi, dword [esp + 0x18]
lea ecx, [ebp*8]
cmp ecx, 0x40
jge 0x96887d
mov esi, 0x47
lea eax, [edi + ecx*2]
sub esi, ecx
shr esi, 3
mov ecx, ebp
mov edx, 8
shl ecx, 4
lea ecx, [ecx + edi - 0x10]
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x96862c
dec esi
jne 0x96861e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esi + 0x54]
mov eax, edi
test ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0
jle 0x96874e
mov ebp, dword [esp + 0x2c]
xor edx, edx
test ebp, ebp
jle 0x9686e1
mov ecx, eax
lea edi, [eax + ebx*2]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edi
xor eax, eax
test ebx, ebx
jle 0x9686a7
mov edi, dword [esi + 0x30]
mov ebx, edx
imul ebx, dword [esi + 0x3c]
imul edi, eax
mov ebp, dword [esp + 0x14]
add ecx, 2
add ebp, edi
inc eax
movzx di, byte [ebx + ebp]
mov ebx, dword [esp + 0x10]
mov word [ecx - 2], di
cmp eax, ebx
jl 0x96867c
mov edi, dword [esp + 0x1c]
cmp ebx, 8
jge 0x9686c2
mov eax, 8
mov ecx, edi
sub eax, ebx
mov bp, word [edi - 2]
mov word [ecx], bp
add ecx, 2
dec eax
jne 0x9686b5
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
inc edx
add ecx, 0x10
add edi, 0x10
cmp edx, ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edi
jl 0x968676
mov eax, dword [esp + 0x30]
lea ecx, [ebp*8]
cmp ecx, 0x40
jge 0x968720
mov edi, 0x47
lea eax, [eax + ecx*2]
sub edi, ecx
shr edi, 3
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
shl edx, 4
lea ecx, [edx + ecx - 0x10]
mov edx, 8
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x96870e
dec edi
jne 0x9686fa
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x54]
add eax, 0x80
inc ebp
inc ecx
mov dword [esp + 0x30], eax
cmp ecx, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ecx
jl 0x96865f
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], 0xc0
lea edx, [edi + 0x80]
xor ebx, ebx
jmp 0x96876c
mov esi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x96876c
mov esi, dword [esp + 0x28]
mov esi, dword [esi + 0x34]
cmp esi, 2
jne 0x968784
mov si, word [edx - 0x80]
mov cx, word [edx]
mov ax, word [edx + 0x80]
jmp 0x9687c7
cmp esi, 1
jne 0x968799
mov ax, word [edx - 0x80]
mov cx, word [edx]
mov si, word [edx + 0x80]
jmp 0x9687c7
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
add edi, ebx
mov ax, 0xff
sub ax, word [edx - 0x80]
mov cx, 0xff
sub cx, word [edx]
mov si, 0xff
sub si, word [edx + 0x80]
add word [ebp + edi*2], 0xff80
lea edi, [ebp + edi*2]
movsx esi, si
movsx ecx, cx
lea edi, [esi*8]
add edx, 2
sub edi, esi
movsx eax, ax
lea ebp, [esi + edi*4]
lea edi, [ecx + ecx*2]
lea edi, [edi + edi*4]
lea edi, [edi + edi*4]
lea edi, [ebp + edi*2]
lea ebp, [eax + eax*8]
lea ebp, [eax + ebp*2]
lea ebp, [eax + ebp*4]
lea edi, [edi + ebp - 0x7f80]
sar edi, 8
mov word [edx - 0x82], di
lea edi, [esi + 1]
shl edi, 7
mov ebp, edi
lea edi, [eax*8]
sub edi, eax
lea edi, [edi + edi*2]
lea edi, [eax + edi*2]
sub ebp, edi
mov edi, ecx
shl edi, 4
add edi, ecx
lea edi, [edi + edi*4]
sub ebp, edi
sar ebp, 8
inc eax
mov word [edx - 2], bp
shl eax, 7
mov edi, eax
lea eax, [esi*8]
sub eax, esi
lea eax, [eax + eax*2]
sub edi, eax
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*8]
shl eax, 2
sub eax, ecx
sub edi, eax
sar edi, 8
mov word [edx + 0x7e], di
inc ebx
cmp ebx, 8
jl 0x968768
mov eax, dword [esp + 0x2c]
add eax, 8
mov dword [esp + 0x2c], eax
add eax, 0xffffff40
cmp eax, 0x40
jl 0x968760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret