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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xf5c
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xf78]
mov dword [esp + 0x24], eax
mov eax, 2
mov dword [esp + 0x20], edx
mov edx, eax
mov dword [esp + 0xf28], 0
add ecx, 2
sar ecx, 1
shl edx, cl
mov ecx, dword [esp + 0xf78]
mov dword [esp + 0x44], edx
mov dword [esp + 0xf2c], 0
mov dword [esp + 0xf30], 0
add ecx, 1
sar ecx, 1
shl eax, cl
mov dword [esp + 0x48], eax
imul eax, edx
mov edx, dword [esp + 0xf84]
mov dword [esp + 0xf34], 0
mov dword [esp + 0xf38], 0
mov dword [esp + 0xf3c], 0
test edx, edx
mov dword [esp + 0xf40], 0
mov dword [esp + 0x4c], eax
je 0x7736ad
mov ecx, dword [esp + 0xf78]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x58], 0xbafd40
lea eax, [ecx + ecx*2]
mov ebx, dword [ecx*4 + 0xbafc58]
shl eax, 5
add eax, 0xb691b0
mov dword [esp + 0x50], eax
mov eax, ecx
shl eax, 4
add eax, 0xbafc80
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], ebx
test eax, eax
jle 0x77313c
mov ebx, dword [esp + 0x20]
xor esi, esi
xor edi, edi
mov dword [esp + 0x30], 0
lea ebp, [esp + 0xb0]
mov eax, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
jle 0x773113
nop
movzx eax, byte [ecx + ebx]
lea edx, [ecx + edi]
add ecx, 1
mov word [ebp + edx*2], ax
mov edx, eax
add esi, eax
imul edx, eax
add dword [esp + 0xa4], edx
cmp ecx, dword [esp + 0x44]
jne 0x7730f0
add dword [esp + 0x30], 1
mov eax, dword [esp + 0x48]
add ebx, dword [esp + 0xf74]
add edi, dword [esp + 0x44]
cmp dword [esp + 0x30], eax
jne 0x7730e5
mov dword [esp + 0xf28], esi
mov dword [esp + 0x58], 0xbafd40
mov eax, dword [esp + 0xf28]
mov edx, dword [esp + 0xf78]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x40], 0
mov dword [esp + 0x74], eax
imul eax, eax
add edx, 3
mov ecx, edx
mov dword [esp + 0x28], edx
sar eax, cl
sub ebx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
sar eax, 1
mov dword [esp + 0x2c], eax
add eax, dword [esp + 0x74]
sar eax, cl
cmp dword [esp + 0xf78], 3
mov dword [esp + 0x38], eax
jg 0x773422
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0xb0]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xa8], 1
shl ebx, 4
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x90], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x80]
sub ebx, 1
mov dword [esp + 0x6c], ebx
shl eax, 4
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xf84]
test eax, eax
jne 0x773a99
mov edi, dword [esp + 0x90]
xor ebp, ebp
mov dword [esp + 0x60], 0x7fffffff
mov dword [esp + 0x64], 0xfffffc19
mov dword [esp + 0x68], 0xfffffc19
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x88]
movsx edx, byte [ebp + edx]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x24]
call dword [edx + 0x23c8]
mov esi, dword [esp + 0x74]
sub esi, dword [esp + 0x98]
mov edx, esi
sar edx, 0x1f
mov ecx, edx
mov ebx, eax
imul ecx, esi
mov eax, esi
mul esi
add ecx, ecx
lea edx, [ecx + edx]
movzx ecx, byte [esp + 0x28]
shrd eax, edx, cl
sar edx, cl
test cl, 0x20
je 0x77328e
mov eax, edx
sar edx, 0x1f
sub ebx, eax
cmp dword [esp + 0x60], ebx
jle 0x7732ec
mov eax, dword [esp + 0x2c]
lea edx, [esi + eax]
sar edx, cl
lea eax, [edx + 0x12b]
cmp eax, 0x256
ja 0x7739e7
cmp edx, 0xff
mov eax, edx
jle 0x7732bf
mov eax, 0xff
cmp eax, 0xffffff00
jge 0x7732cb
mov eax, 0xffffff00
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], eax
mov dword [esp + edx*4 + 0xf40], ebp
mov dword [esp + 0x64], ecx
add ebp, 1
add edi, dword [esp + 0x4c]
cmp ebp, 0x10
jne 0x773227
cmp dword [esp + 0x68], 0xfffffc19
je 0x773a45
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
imul eax, dword [esp + ecx*4 + 0xf40]
add eax, dword [esp + 0x78]
lea edi, [eax + ebx]
mov eax, dword [esp + 0x88]
lea esi, [eax + 0x200]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x77336b
shl dword [esp + 0x6c], 9
xor ebx, ebx
lea ecx, [esp + 0xb0]
add ecx, dword [esp + 0x6c]
nop
movsx dx, byte [ebx + edi]
movzx eax, word [ecx]
add ecx, 2
sub ax, dx
mov word [esi + ebx*2], ax
add ebx, 1
cmp ebx, dword [esp + 0x4c]
jne 0x773350
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x68]
movzx eax, byte [ecx + edx*2 + 3]
mov ecx, dword [esp + 0x58]
movzx edx, word [ecx + ebx*4 + 2]
mov ebx, dword [esp + 0xa8]
lea eax, [eax + edx + 1]
lea eax, [eax + ebx*4]
imul eax, dword [esp + 0xf80]
add eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x3c]
jge 0x7733b8
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x94]
add dword [esp + 0x80], ecx
add eax, 1
add dword [esp + 0x90], ebx
add dword [esp + 0x84], 0x10
cmp eax, 7
mov dword [esp + 0x88], esi
je 0x773422
mov edx, dword [esp + 0x64]
sub dword [esp + 0x74], edx
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xa8], eax
mov dword [esp + ecx*4 + 0xf28], ebx
mov edx, dword [esp + eax*4 + 0xf24]
mov ebx, eax
mov dword [esp + 0x74], edx
jmp 0x7731e2
mov ecx, dword [esp + 0xf7c]
cmp dword [esp + 0x3c], ecx
jg 0x77379b
xor ebp, ebp
mov edi, dword [esp + 0xf78]
test edi, edi
jle 0x773489
mov edx, dword [esp + 0xf78]
mov edi, ebp
mov ecx, dword [esp + 0x24]
lea eax, [edx + edx*4]
lea ebx, [ecx + eax*4 + 0x30a0]
mov esi, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
cmp esi, 1
jle 0x773a03
lea edi, [edx + edx]
or edi, ebp
lea edx, [esi - 1]
mov ebx, dword [esp + 0xf78]
mov ecx, dword [esp + 0x24]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4 + 0x30a0]
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
test ebp, ebp
jne 0x77369e
cmp dword [esp + 0x38], 0xff
ja 0x7738e7
mov eax, dword [esp + 0x38]
add eax, 0x100
cmp eax, 0x1ff
ja 0x773a61
cmp dword [esp + 0x40], 6
ja 0x773a7d
cmp dword [esp + 0xf78], 3
jg 0x773912
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0xf78]
lea eax, [edx + ebx*2 + 2]
mov edx, dword [esp + 0x24]
movzx edi, byte [eax + 1]
movzx ebp, byte [eax]
lea eax, [ecx + ecx*4]
lea ebx, [edx + eax*4 + 0x30a0]
mov esi, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
cmp edi, esi
jl 0x773940
mov ecx, edi
mov eax, ebp
sub ecx, esi
shr eax, cl
mov ecx, esi
shl edx, cl
or eax, edx
mov edx, dword [ebx + 0x18]
bswap eax
mov dword [edx], eax
add edx, 4
mov dword [ebx + 0x18], edx
lea ebx, [esi + 0x20]
sub ebx, edi
mov edx, dword [esp + 0xf78]
mov ecx, dword [esp + 0x24]
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x38]
lea edi, [ecx + eax*4 + 0x30a0]
mov ecx, dword [esp + 0x58]
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebx
lea eax, [ecx + edx*4]
movzx esi, word [eax + 2]
movzx edx, word [eax]
cmp ebx, esi
mov dword [esp + 0x70], edx
jle 0x77394f
mov ecx, esi
shl ebp, cl
or edx, ebp
mov dword [esp + 0x70], edx
mov edx, ebx
sub edx, esi
mov ebx, dword [esp + 0xf78]
mov ecx, dword [esp + 0x24]
lea eax, [ebx + ebx*4]
mov ebx, dword [esp + 0x70]
lea eax, [ecx + eax*4 + 0x30a0]
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], ebx
test ecx, ecx
jle 0x773608
mov esi, dword [esp + 0xf44]
cmp esi, 0xf
ja 0x773a29
xor ebp, ebp
mov edi, eax
jmp 0x7735cd
shl edx, 4
add ebp, 1
or esi, edx
cmp ebp, dword [esp + 0x40]
lea eax, [ebx - 4]
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], eax
je 0x773608
mov esi, dword [esp + ebp*4 + 0xf44]
cmp esi, 0xf
ja 0x773a29
mov ebx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
cmp ebx, 4
jg 0x7735a6
mov ecx, 4
mov eax, esi
sub ecx, ebx
add ebp, 1
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [edi + 0x18]
bswap eax
mov dword [edx], eax
add edx, 4
cmp ebp, dword [esp + 0x40]
lea eax, [ebx + 0x1c]
mov dword [edi + 0x18], edx
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], eax
jne 0x7735bd
mov edx, dword [esp + 0x48]
test edx, edx
jle 0x77369e
mov ebx, dword [esp + 0x40]
xor ebp, ebp
mov dword [esp + 0xa0], 0
mov dword [esp + 0x7c], 0
shl ebx, 8
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x77367a
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0xf70]
movzx edi, byte [esp + 0x38]
lea ecx, [esp + eax*2 + 0xb0]
mov eax, dword [esp + 0x20]
lea esi, [ebx + ebp]
lea ebx, [eax + ebp]
movzx eax, byte [edx + ebx]
sub al, byte [ecx]
add ecx, 2
add eax, edi
mov byte [edx + esi], al
add edx, 1
cmp edx, dword [esp + 0x44]
jne 0x773663
add dword [esp + 0xa0], 1
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add ebp, dword [esp + 0xf74]
add dword [esp + 0x7c], eax
cmp dword [esp + 0xa0], edx
jne 0x773634
mov eax, dword [esp + 0x3c]
add esp, 0xf5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0xf78]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x58], 0xbb0540
lea eax, [edx + edx*2]
mov ecx, dword [edx*4 + 0xbafc40]
shl eax, 5
add eax, 0xb69330
mov dword [esp + 0x50], eax
mov eax, edx
shl eax, 4
add eax, 0xbafce0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], ecx
test eax, eax
jle 0x77313c
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x9c], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x773760
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x1c]
lea esi, [ebx + eax]
lea ebx, [edx + eax]
movzx edx, byte [ecx + ebx]
movzx eax, byte [ecx + esi]
sub eax, edx
lea edx, [ecx + ebp]
add edi, eax
mov word [esp + edx*2 + 0xb0], ax
mov edx, eax
add ecx, 1
imul edx, eax
add dword [esp + 0xa4], edx
cmp ecx, dword [esp + 0x44]
jne 0x773734
add dword [esp + 0x9c], 1
mov ecx, dword [esp + 0xf74]
mov ebx, dword [esp + 0x48]
add dword [esp + 0x8c], ecx
add ebp, dword [esp + 0x44]
cmp dword [esp + 0x9c], ebx
jne 0x773715
mov dword [esp + 0xf28], edi
mov dword [esp + 0x58], 0xbb0540
jmp 0x77313c
mov ebp, dword [esp + 0xf78]
test ebp, ebp
je 0x773433
test byte [esp + 0xf78], 1
je 0x773974
mov edx, dword [esp + 0x48]
imul edx, dword [esp + 0xf74]
mov eax, edx
shr eax, 0x1f
lea esi, [eax + edx]
sar esi, 1
mov edi, dword [esp + 0xf78]
sub edi, 1
js 0x77382b
mov edx, dword [esp + 0xf78]
mov ebx, dword [esp + 0x24]
lea eax, [edx + edx*4]
shl eax, 2
lea ecx, [ebx + eax + 0x30ac]
xor ebx, ebx
lea edx, [esp + eax + 0xeb0]
mov eax, dword [ecx - 0x14]
add ebx, 1
mov dword [edx - 0x14], eax
mov eax, dword [ecx - 0x10]
mov dword [edx - 0x10], eax
mov eax, dword [ecx - 0xc]
mov dword [edx - 0xc], eax
mov eax, dword [ecx - 8]
mov dword [edx - 8], eax
mov eax, dword [ecx - 4]
sub ecx, 0x14
mov dword [edx - 4], eax
sub edx, 0x14
cmp ebx, dword [esp + 0xf78]
jne 0x7737fb
mov eax, dword [esp + 0xf84]
mov edx, dword [esp + 0xf80]
mov ecx, dword [esp + 0xf74]
mov ebx, dword [esp + 0xf7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xf70]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
sar ebx, 1
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
call fcn.00772fe0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xf74]
mov dword [esp + 8], edi
add ecx, esi
add edx, esi
mov ebp, eax
mov eax, dword [esp + 0xf84]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xf80]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xf70]
add eax, esi
mov dword [esp], eax
mov eax, dword [esp + 0x24]
call fcn.00772fe0
lea eax, [ebp + eax]
add eax, dword [esp + 0xf80]
cmp dword [esp + 0x3c], eax
jle 0x773989
mov ebp, 1
mov dword [esp + 0x3c], eax
jmp 0x773435
mov esi, dword [esp + 0xf84]
test esi, esi
je 0x77349f
mov dword [esp + 8], 0xf0
mov dword [esp + 4], 0xb69018
mov dword [esp], 0xb69054
call sub.msvcrt.dll__assert
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x7734cc
mov dword [esp + 8], 0xf3
mov dword [esp + 4], 0xb69018
mov dword [esp], 0xb690c3
call sub.msvcrt.dll__assert
lea esi, [esi]
mov ecx, edi
mov ebx, esi
shl edx, cl
sub ebx, edi
or ebp, edx
jmp 0x773522
mov eax, edx
mov ecx, esi
mov edx, dword [edi + 0x18]
sub ecx, ebx
shr eax, cl
mov ecx, ebx
shl ebp, cl
sub ebx, esi
or eax, ebp
bswap eax
mov dword [edx], eax
add edx, 4
mov dword [edi + 0x18], edx
lea edx, [ebx + 0x20]
jmp 0x773569
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
shr eax, 0x1f
lea esi, [eax + ebx]
sar esi, 1
jmp 0x7737ce
test edi, edi
js 0x773433
mov edx, dword [esp + 0xf78]
mov ebx, dword [esp + 0x24]
lea eax, [edx + edx*4]
shl eax, 2
lea edx, [ebx + eax + 0x30ac]
xor ebx, ebx
lea ecx, [esp + eax + 0xeb0]
mov eax, dword [ecx - 0x14]
add ebx, 1
mov dword [edx - 0x14], eax
mov eax, dword [ecx - 0x10]
mov dword [edx - 0x10], eax
mov eax, dword [ecx - 0xc]
mov dword [edx - 0xc], eax
mov eax, dword [ecx - 8]
mov dword [edx - 8], eax
mov eax, dword [ecx - 4]
sub ecx, 0x14
mov dword [edx - 4], eax
sub edx, 0x14
cmp ebx, dword [esp + 0xf78]
jne 0x7739b2
jmp 0x773433
mov dword [esp + 8], 0xbb
mov dword [esp + 4], 0xb69018
mov dword [esp], 0xb69022
call sub.msvcrt.dll__assert
mov ecx, 1
mov eax, ebp
sub ecx, esi
shr eax, cl
mov ecx, esi
shl edx, cl
or eax, edx
mov edx, dword [ebx + 0x18]
bswap eax
mov dword [edx], eax
add edx, 4
mov dword [ebx + 0x18], edx
lea edx, [esi + 0x1f]
jmp 0x77346e
mov dword [esp + 8], 0xfd
mov dword [esp + 4], 0xb69018
mov dword [esp], 0xb690dc
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0xc3
mov dword [esp + 4], 0xb69018
mov dword [esp], 0xb69039
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0xf1
mov dword [esp + 4], 0xb69018
mov dword [esp], 0xb69080
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0xf2
mov dword [esp + 4], 0xb69018
mov dword [esp], 0xb690a4
call sub.msvcrt.dll__assert
mov edi, dword [esp + 0x90]
mov dword [esp + 0x34], 0
mov dword [esp + 0x60], 0x7fffffff
mov dword [esp + 0x64], 0xfffffc19
mov dword [esp + 0x68], 0xfffffc19
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
movsx ebp, byte [ebx + eax]
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], edi
call dword [ebx + 0x23c8]
mov esi, dword [esp + 0x74]
sub esi, ebp
mov edx, esi
sar edx, 0x1f
mov ebx, eax
mov ecx, edx
mov eax, esi
imul ecx, esi
mul esi
add ecx, ecx
lea edx, [ecx + edx]
movzx ecx, byte [esp + 0x28]
shrd eax, edx, cl
sar edx, cl
test cl, 0x20
je 0x773b1e
mov eax, edx
sar edx, 0x1f
sub ebx, eax
cmp ebx, dword [esp + 0x60]
jge 0x773b78
mov eax, dword [esp + 0x2c]
lea edx, [esi + eax]
sar edx, cl
lea eax, [edx + 0x12b]
cmp eax, 0x256
ja 0x7739e7
cmp edx, 0xff
mov eax, edx
jle 0x773b4f
mov eax, 0xff
mov edx, eax
mov ecx, dword [esp + 0xa8]
sar edx, 0x1f
not edx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x34]
and dword [esp + 0x68], eax
mov dword [esp + 0x60], ebx
mov dword [esp + ecx*4 + 0xf40], edx
mov dword [esp + 0x64], ebp
add dword [esp + 0x34], 1
add edi, dword [esp + 0x4c]
cmp dword [esp + 0x34], 0x10
jne 0x773ac0
jmp 0x7732fc