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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x70]
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xc0]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0xbc]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 4]
sub ebx, ecx
add ebx, edx
mov dword [esp + 4], ecx
mov ecx, dword [eax + 0xb8]
push ebp
push esi
mov esi, dword [eax + 0x18]
push edi
mov dword [esp + 0x24], ebx
mov edi, 1
mov ebx, dword [eax + 0xc]
shl edi, cl
mov ecx, dword [esp + 0x24]
mov eax, ecx
sub eax, ebx
sub ecx, edi
cmp eax, edi
mov eax, dword [esp + 0x10]
cmovbe ecx, ebx
test esi, esi
cmovne ecx, ebx
add eax, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [ecx + edx]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x70], eax
add eax, 0xfffffff8
mov dword [esp + 0x2c], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x20], edx
xor edx, edx
cmp ecx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
sete al
mov dword [esp + 0x4c], edx
add eax, ecx
mov edx, ebx
mov dword [esp + 0x58], eax
sub eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x5c], eax
sub eax, edi
sub ecx, ebx
cmp ecx, edi
mov ecx, dword [esp + 0x20]
cmova edx, eax
mov eax, dword [esp + 0x5c]
test esi, esi
cmovne edx, ebx
sub eax, edx
cmp ecx, eax
jbe 0x78922a
xor edx, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x80]
cmp ecx, eax
jbe 0x789244
mov dword [esp + 0x60], ecx
mov dword [esp + 0x80], 0
mov ebx, dword [esp + 0x58]
lea edi, [ebx + 1]
lea eax, [ebx + 0x100]
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], eax
cmp edi, dword [esp + 0x2c]
ja 0x789acf
mov eax, 0x40
mov esi, 0x40
sub eax, dword [esp + 0x50]
sub esi, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], esi
nop dword [eax]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
push 0xcf1bbcdc
push 0xb7a56463
push ecx
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ecx
call fcn.007bcf30
mov ecx, esi
call fcn.007bcf90
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], 1
mov eax, dword [ecx + eax*4]
add esi, eax
mov dword [esp + 0x50], eax
xor eax, eax
cmp eax, dword [esp + 0x80]
sbb eax, eax
neg eax
mov dword [esp + 0x64], eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + 0x3c]
push 0xcf1bbcdc
push 0xbfa56300
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.007bcf30
mov ecx, dword [esp + 0x44]
call fcn.007bcf90
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x74]
mov ecx, dword [edx + eax*4]
mov edx, ebx
sub edx, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
add ecx, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], edx
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + eax*4], edx
mov edx, ebx
sub edx, dword [esp + 0x80]
xor ecx, ecx
mov eax, dword [edx + 1]
cmp eax, dword [ebx + 1]
sete cl
test dword [esp + 0x64], ecx
jne 0x78970a
mov ecx, dword [edi + 4]
mov eax, dword [edi]
push 0xcf1bbcdc
push 0xb7a56463
push ecx
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ecx
call fcn.007bcf30
mov ecx, dword [esp + 0x38]
call fcn.007bcf90
mov ecx, dword [ebx]
mov edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], edx
cmp dword [esp + 0x50], eax
jbe 0x789398
mov eax, dword [ebx + 4]
cmp dword [esi], ecx
jne 0x789398
cmp dword [esi + 4], eax
je 0x7893f0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
add esi, eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x5c], edx
jbe 0x7893bf
mov edx, dword [esp + 0x58]
cmp dword [edx], ecx
je 0x78956d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
cmp edi, eax
jb 0x7893d9
inc ecx
add eax, 0x100
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], eax
mov ebx, edi
add edi, ecx
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x2c]
jbe 0x7892e0
jmp 0x789acf
mov edi, dword [esp + 0x70]
lea ecx, [ebx + 8]
add edi, 0xfffffffd
mov dword [esp + 0x50], ecx
lea edx, [esi + 8]
cmp ecx, edi
jae 0x789434
mov eax, dword [ecx]
xor eax, dword [edx]
je 0x789413
bsf ecx, eax
shr ecx, 3
jmp 0x78945c
add ecx, 4
add edx, 4
cmp ecx, edi
jae 0x789434
nop dword [eax]
mov eax, dword [ecx]
xor eax, dword [edx]
jne 0x789560
add ecx, 4
add edx, 4
cmp ecx, edi
jb 0x789420
mov edi, dword [esp + 0x70]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x78944d
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x78944d
add ecx, 2
add edx, 2
cmp ecx, edi
jae 0x789458
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x789458
inc ecx
sub ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
lea edi, [ecx + 8]
mov eax, ebx
sub eax, esi
cmp dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
sbb ecx, ecx
neg ecx
cmp edx, ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x78949c
nop dword [eax]
mov al, byte [ebx - 1]
dec esi
cmp al, byte [esi]
jne 0x78949c
dec ebx
inc edi
cmp dword [esp + 0x18], esi
sbb ecx, ecx
neg ecx
cmp edx, ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x789480
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x7c]
cmp dword [esp + 0x30], 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], eax
jae 0x7894d0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
sub edx, dword [esp + 0x10]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x70]
lea ecx, [ebp + 0xc]
add eax, 0xffffffe0
mov dword [esp + 0x64], ecx
mov edx, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [ecx]
sub edx, esi
mov dword [esp + 0x5c], edx
cmp ebx, dword [esp + 0x7c]
ja 0x7896be
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
cmp edx, 0x10
jbe 0x7896d5
mov ebp, dword [ecx]
lea eax, [edx - 0x10]
movups xmm0, xmmword [esi + 0x10]
add ebp, 0x10
mov dword [esp + 0x7c], ebp
lea edx, [eax + ebp]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x5c]
movups xmmword [ebp], xmm0
mov ebp, dword [esp + 0x74]
cmp eax, 0x10
jle 0x7896d5
mov eax, dword [esp + 0x7c]
lea ecx, [esi + 0x20]
mov esi, dword [esp + 0x64]
add eax, 0x10
nop
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, esi
jb 0x789540
lea ecx, [ebp + 0xc]
jmp 0x7896d5
bsf eax, eax
shr eax, 3
add ecx, eax
jmp 0x789458
cmp eax, dword [esp + 0x24]
jbe 0x7895e9
mov eax, dword [esp + 0x34]
cmp dword [esi], eax
jne 0x7895e9
mov eax, dword [esp + 0x3c]
cmp dword [esi + 4], eax
jne 0x7895e9
mov eax, dword [esp + 0x70]
mov ebx, edi
push eax
lea eax, [esi + 8]
push eax
lea eax, [edi + 8]
push eax
call fcn.00782bc0
mov edx, dword [esp + 0x20]
add esp, 0xc
lea edi, [eax + 8]
mov eax, edx
sub eax, esi
cmp dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
sbb ecx, ecx
neg ecx
cmp dword [esp + 0x7c], edx
sbb eax, eax
neg eax
test eax, ecx
je 0x7894a0
mov al, byte [ebx - 1]
dec esi
cmp al, byte [esi]
jne 0x7894a0
dec ebx
inc edi
cmp dword [esp + 0x18], esi
sbb ecx, ecx
neg ecx
cmp dword [esp + 0x7c], ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x7895c2
jmp 0x7894a0
mov edi, dword [esp + 0x70]
lea ecx, [ebx + 4]
add edx, 4
mov dword [esp + 0x50], ecx
lea esi, [edi - 3]
cmp ecx, esi
jae 0x78962a
mov eax, dword [ecx]
xor eax, dword [edx]
je 0x78960c
bsf ecx, eax
shr ecx, 3
jmp 0x78964e
add ecx, 4
add edx, 4
cmp ecx, esi
jae 0x78962a
mov eax, dword [ecx]
xor eax, dword [edx]
jne 0x7896b4
add ecx, 4
add edx, 4
cmp ecx, esi
jb 0x789616
lea eax, [edi - 1]
cmp ecx, eax
jae 0x78963f
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x78963f
add ecx, 2
add edx, 2
cmp ecx, edi
jae 0x78964a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x78964a
inc ecx
sub ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x7c]
lea edi, [ecx + 4]
mov ecx, dword [esp + 0x58]
mov eax, ebx
sub eax, ecx
cmp dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
sbb ecx, ecx
neg ecx
cmp esi, ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x7896ab
mov edx, dword [esp + 0x5c]
add edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
nop
lea eax, [ebx - 1]
mov dword [esp + 0x7c], eax
lea ecx, [edx - 1]
mov al, byte [eax]
mov edx, ecx
cmp al, byte [ecx]
jne 0x7896a7
mov ebx, dword [esp + 0x7c]
inc edi
cmp ebp, edx
sbb ecx, ecx
neg ecx
cmp esi, ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x789680
mov ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
jmp 0x7894a4
bsf eax, eax
shr eax, 3
add ecx, eax
jmp 0x78964a
push dword [esp + 0x7c]
push ebx
push esi
push eax
call fcn.0077bba0
mov ecx, dword [esp + 0x74]
add esp, 0x10
mov edx, dword [esp + 0x5c]
add dword [ecx], edx
cmp edx, 0xffff
jbe 0x7896f2
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x34]
add ecx, 3
mov word [eax + 4], dx
mov eax, dword [ebp + 4]
mov dword [eax], ecx
jmp 0x78984a
mov edi, dword [esp + 0x70]
lea ecx, [ebx + 5]
add edx, 5
mov dword [esp + 0x5c], ecx
lea esi, [edi - 3]
cmp ecx, esi
jae 0x789754
mov eax, dword [ecx]
xor eax, dword [edx]
je 0x78972d
bsf ecx, eax
shr ecx, 3
jmp 0x789778
add ecx, 4
add edx, 4
cmp ecx, esi
jae 0x789754
nop word [eax + eax]
mov eax, dword [ecx]
xor eax, dword [edx]
jne 0x7897fd
add ecx, 4
add edx, 4
cmp ecx, esi
jb 0x789740
lea eax, [edi - 1]
cmp ecx, eax
jae 0x789769
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x789769
add ecx, 2
add edx, 2
cmp ecx, edi
jae 0x789774
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x789774
inc ecx
sub ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
lea edi, [ecx + 4]
mov ecx, dword [esp + 0x7c]
lea esi, [ebp + 0xc]
inc ebx
add eax, 0xffffffe0
mov edx, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
sub edx, ecx
mov dword [esp + 0x5c], edx
cmp ebx, dword [esp + 0x7c]
ja 0x78980a
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
cmp edx, 0x10
jbe 0x78981d
mov ebp, dword [esi]
lea eax, [edx - 0x10]
movups xmm0, xmmword [ecx + 0x10]
add ebp, 0x10
mov dword [esp + 0x7c], ebp
lea edx, [eax + ebp]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x5c]
movups xmmword [ebp], xmm0
mov ebp, dword [esp + 0x74]
cmp eax, 0x10
jle 0x78981d
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x64]
add eax, 0x10
add ecx, 0x20
nop
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, esi
jb 0x7897e0
lea esi, [ebp + 0xc]
jmp 0x78981d
bsf eax, eax
shr eax, 3
add ecx, eax
jmp 0x789774
push dword [esp + 0x7c]
push ebx
push ecx
push eax
call fcn.0077bba0
mov edx, dword [esp + 0x6c]
add esp, 0x10
add dword [esi], edx
cmp edx, 0xffff
jbe 0x78983a
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov word [eax + 4], dx
mov eax, dword [ebp + 4]
mov dword [eax], 1
lea ecx, [edi - 3]
cmp ecx, 0xffff
jbe 0x789868
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 2
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov word [eax + 6], cx
add dword [ebp + 4], 8
add ebx, edi
mov dword [esp + 0x7c], ebx
cmp ebx, dword [esp + 0x2c]
ja 0x789ab0
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
add edi, 2
push 0xcf1bbcdc
push 0xb7a56463
push dword [edi + eax + 4]
push dword [edi + eax]
call fcn.007bcf30
mov ecx, dword [esp + 0x38]
call fcn.007bcf90
mov ecx, dword [esp + 0x1c]
push 0xcf1bbcdc
push 0xb7a56463
mov dword [ecx + eax*4], edi
push dword [ebx + 2]
push dword [ebx - 2]
call fcn.007bcf30
mov ecx, dword [esp + 0x38]
call fcn.007bcf90
mov edx, dword [esp + 0x10]
mov esi, ebx
mov ebp, dword [esp + 0x1c]
sub esi, edx
mov ecx, eax
push 0xcf1bbcdc
push 0xbfa56300
lea eax, [esi - 2]
mov dword [ebp + ecx*4], eax
push dword [edi + edx + 4]
push dword [edi + edx]
call fcn.007bcf30
mov ecx, dword [esp + 0x44]
call fcn.007bcf90
mov ecx, dword [esp + 0x28]
push 0xcf1bbcdc
push 0xbfa56300
mov dword [ecx + eax*4], edi
push dword [ebx + 3]
push dword [ebx - 1]
call fcn.007bcf30
mov ecx, dword [esp + 0x44]
call fcn.007bcf90
mov edx, dword [esp + 0x28]
mov ecx, eax
mov ebp, dword [esp + 0x74]
lea eax, [esi - 1]
mov esi, dword [esp + 0x70]
mov dword [edx + ecx*4], eax
lea eax, [esi - 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [ebx]
mov edx, ebx
sub edx, dword [esp + 0x20]
xor ecx, ecx
cmp eax, dword [edx]
sete cl
xor eax, eax
cmp eax, dword [esp + 0x20]
sbb eax, eax
neg eax
test eax, ecx
je 0x789ab0
lea eax, [ebx + 4]
add esi, 0xfffffffd
add edx, 4
mov edi, eax
cmp eax, esi
jae 0x7899a4
mov ecx, dword [eax]
xor ecx, dword [edx]
je 0x789984
bsf ecx, ecx
shr ecx, 3
jmp 0x7899cc
add eax, 4
add edx, 4
cmp eax, esi
jae 0x7899a4
nop
mov ecx, dword [eax]
xor ecx, dword [edx]
jne 0x789a46
add eax, 4
add edx, 4
cmp eax, esi
jb 0x789990
mov esi, dword [esp + 0x70]
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x7899bd
mov cx, word [edx]
cmp cx, word [eax]
jne 0x7899bd
add eax, 2
add edx, 2
cmp eax, esi
jae 0x7899c8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x7899c8
inc eax
mov ecx, eax
sub ecx, edi
mov eax, dword [esp + 0x20]
lea edi, [ecx + 4]
mov ecx, dword [esp + 0x80]
push 0xcf1bbcdc
push 0xbfa56300
push dword [ebx + 4]
mov dword [esp + 0x2c], ecx
push dword [ebx]
mov dword [esp + 0x90], eax
call fcn.007bcf30
mov ecx, dword [esp + 0x44]
call fcn.007bcf90
mov ecx, dword [esp + 0x28]
mov esi, ebx
sub esi, dword [esp + 0x10]
push 0xcf1bbcdc
push 0xb7a56463
mov dword [ecx + eax*4], esi
push dword [ebx + 4]
push dword [ebx]
call fcn.007bcf30
mov ecx, dword [esp + 0x38]
call fcn.007bcf90
mov ecx, dword [esp + 0x1c]
mov dword [ecx + eax*4], esi
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp + 0xc]
cmp ebx, ecx
ja 0x789a55
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
jmp 0x789a61
bsf ecx, ecx
shr ecx, 3
sub ecx, edi
add ecx, eax
jmp 0x7899cc
push ecx
push ebx
push ebx
push eax
call fcn.0077bba0
add esp, 0x10
mov eax, dword [ebp + 4]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [edi - 3]
mov eax, dword [ebp + 4]
mov dword [eax], 1
cmp ecx, 0xffff
jbe 0x789a91
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 2
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
add ebx, edi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x7c], ebx
mov word [eax + 6], cx
add dword [ebp + 4], 8
cmp ebx, dword [esp + 0x2c]
jbe 0x789946
mov esi, dword [esp + 0x38]
lea edi, [ebx + 1]
lea eax, [ebx + 0x100]
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], eax
cmp edi, dword [esp + 0x2c]
jbe 0x789280
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x80]
test edx, edx
je 0x789ae7
test eax, eax
cmovne ecx, edx
mov esi, dword [esp + 0x78]
test eax, eax
pop edi
cmovne edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esi], edx
cmovne ecx, eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x78]
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret