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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov ecx, dword [0xbcbae0]
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xac]
xor ecx, esp
test eax, eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
je 0x771be6
xor ecx, ecx
movzx edx, word [edi + ecx*2]
inc ecx
inc word [esp + edx*2 + 0x70]
cmp ecx, eax
jne 0x7714f4
movzx ecx, word [esp + 0x8e]
mov edx, dword [esi]
mov ebp, 0xf
test cx, cx
jne 0x77152c
cmp word [esp + 0x8c], 0
je 0x771abf
mov ebp, 0xe
xor ecx, ecx
cmp edx, ebp
mov ebx, 1
mov dword [esp], ecx
cmova edx, ebp
cmp word [esp + ebx*2 + 0x70], 0
jne 0x771546
inc ebx
cmp ebx, ebp
jb 0x771539
movzx edi, word [esp + 0x72]
cmp edx, ebx
mov ecx, 2
mov esi, 0xffffffff
cmovb edx, ebx
sub ecx, edi
js 0x77198f
movzx esi, word [esp + 0x74]
add ecx, ecx
sub ecx, esi
mov dword [esp + 0x20], esi
jns 0x7719aa
mov esi, 0xffffffff
jmp 0x77198f
cmp dword [esp + 0xa8], 0
je 0x77198f
cmp ebp, 1
jne 0x77198f
mov ecx, dword [esp + 0x20]
mov word [esp + 0x52], 0
mov word [esp + 0x54], dx
add ecx, edx
mov edx, dword [esp + 0x4c]
mov word [esp + 0x56], cx
add edx, ecx
mov ecx, dword [esp + 8]
mov word [esp + 0x58], dx
add ecx, edx
mov edx, dword [esp + 0x1c]
add edi, ecx
mov word [esp + 0x5a], cx
mov ecx, dword [esp + 0x44]
mov word [esp + 0x5c], di
add ecx, edi
add edx, ecx
mov word [esp + 0x5e], cx
mov ecx, dword [esp + 0x10]
mov word [esp + 0x60], dx
add ecx, edx
mov edx, dword [esp + 0x2c]
mov word [esp + 0x62], cx
add edx, ecx
mov ecx, dword [esp + 0xc]
mov word [esp + 0x64], dx
add ecx, edx
mov edx, dword [esp + 0x40]
mov word [esp + 0x66], cx
add edx, ecx
mov ecx, dword [esp + 0x28]
mov word [esp + 0x68], dx
add ecx, edx
mov edx, dword [esp + 0x3c]
mov word [esp + 0x6a], cx
add edx, ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0x6c], dx
add ecx, edx
test eax, eax
mov word [esp + 0x6e], cx
je 0x77165f
xor ecx, ecx
mov edx, dword [esp + 0xac]
movzx edx, word [edx + ecx*2]
test edx, edx
je 0x77165a
movzx esi, word [esp + edx*2 + 0x50]
lea edi, [esi + 1]
mov word [esp + edx*2 + 0x50], di
mov edi, dword [esp + 0xbc]
mov word [edi + esi*2], cx
inc ecx
cmp ecx, eax
jne 0x771633
mov ecx, dword [esp + 0xa8]
xor edi, edi
test ecx, ecx
jne 0x771698
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], 0x14
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
jmp 0x771723
mov eax, dword [esp + 0x18]
cmp ecx, 1
jne 0x7716d7
mov esi, 1
cmp eax, 9
ja 0x77198f
mov al, 1
mov dword [esp + 0xc], 0x101
mov dword [esp + 0x14], 0xb4329c
mov dword [esp + 0x38], 0xb4325e
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
jmp 0x771723
cmp ecx, 2
mov dword [esp + 0x14], 0xb4331a
mov dword [esp + 0x38], 0xb432da
sete cl
mov dword [esp + 0x30], ecx
je 0x771705
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0
jmp 0x771723
mov esi, 1
cmp eax, 9
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0
ja 0x77198f
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x18]
mov edx, 1
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x40], ebp
mov eax, dword [eax]
shl edx, cl
mov dword [esp + 0x34], edx
dec edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov eax, ebx
mov edx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x44], edi
sub eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0xbc]
movzx eax, word [eax + edi*2]
movzx ecx, ax
mov dword [esp + 0x20], eax
lea eax, [ecx + 1]
cmp eax, edx
jae 0x7717a7
mov dword [esp + 0x1c], 0
jmp 0x7717d4
cmp edx, ecx
jbe 0x7717bb
mov al, 0x60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
jmp 0x7717d4
mov eax, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x38]
mov al, byte [eax + ecx*2]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + ecx*2]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
mov edx, 1
mov ecx, dword [esp]
mov edi, dword [esp + 0x1c]
shl edx, cl
mov ecx, dword [esp + 4]
mov dword [esp + 0x4c], edx
shr eax, cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x20]
lea esi, [ecx + edx]
mov edx, edi
test ecx, ecx
mov byte [eax + esi*4], dl
mov edx, dword [esp]
mov byte [eax + esi*4 + 1], dl
mov word [eax + esi*4 + 2], bp
jne 0x7717fc
mov ecx, ebx
mov edx, 1
dec cl
shl edx, cl
mov ecx, dword [esp + 8]
mov eax, edx
shr edx, 1
test eax, ecx
jne 0x77182f
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
test eax, eax
jne 0x771847
xor ecx, ecx
jmp 0x771850
mov edx, ecx
lea ecx, [eax - 1]
and ecx, edx
add ecx, eax
mov edx, dword [esp + 0x18]
dec word [esp + ebx*2 + 0x70]
jne 0x77187e
cmp ebx, ebp
je 0x77195a
mov eax, dword [esp + 0xbc]
mov esi, ecx
mov ecx, dword [esp + 0xac]
movzx eax, word [eax + edi*2 + 2]
movzx ebx, word [ecx + eax*2]
mov ecx, esi
inc edi
cmp ebx, edx
jbe 0x77176f
mov eax, ecx
and eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x28]
je 0x77176f
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov esi, 1
test ecx, ecx
cmove ecx, edx
mov edx, ebx
sub edx, ecx
mov dword [esp + 4], ecx
mov ecx, edx
shl esi, cl
cmp ebx, ebp
mov ecx, ebx
jae 0x7718dc
movzx ecx, word [esp + ecx*2 + 0x70]
sub esi, ecx
jle 0x7718d3
mov ecx, dword [esp + 4]
add esi, esi
lea ecx, [edx + ecx + 1]
inc edx
cmp ecx, ebp
jb 0x7718bb
mov esi, 1
mov ecx, edx
shl esi, cl
mov ecx, dword [esp + 0x34]
mov dword [esp], edx
add ecx, esi
mov esi, 1
cmp ecx, 0x354
mov dword [esp + 0x34], ecx
seta dl
cmp ecx, 0x250
seta cl
test byte [esp + 0x24], dl
jne 0x77198f
and cl, byte [esp + 0x30]
mov ebp, dword [esp + 0x10]
jne 0x77198f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp]
mov dword [esp + 0x28], eax
lea ebp, [ebp + ecx*4]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], ebp
mov esi, ecx
mov ecx, dword [ecx]
mov byte [ecx + eax*4], dl
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
mov byte [ecx + eax*4 + 1], dl
mov ecx, dword [esp + 0xb4]
mov ecx, dword [ecx]
sub ebp, ecx
shr ebp, 2
mov word [ecx + eax*4 + 2], bp
mov ecx, dword [esp]
jmp 0x771760
test ecx, ecx
je 0x771974
mov eax, dword [esp + 0x10]
mov ebx, dword [esp]
mov byte [eax + ecx*4], 0x40
mov byte [eax + ecx*4 + 1], bl
mov word [eax + ecx*4 + 2], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xb4]
shl ecx, 2
add dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov dword [ecx], edx
xor esi, esi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00980459
mov eax, esi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
movzx esi, word [esp + 0x76]
add ecx, ecx
mov dword [esp + 0x4c], esi
sub ecx, esi
mov esi, 0xffffffff
js 0x77198f
mov dword [esp + 0x48], edi
movzx edi, word [esp + 0x78]
add ecx, ecx
sub ecx, edi
mov dword [esp + 8], edi
js 0x77198f
movzx edi, word [esp + 0x7a]
add ecx, ecx
sub ecx, edi
js 0x77198f
mov dword [esp + 4], edi
movzx edi, word [esp + 0x7c]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x44], edi
js 0x77198f
movzx edi, word [esp + 0x7e]
add ecx, ecx
sub ecx, edi
js 0x77198f
mov dword [esp + 0x1c], edi
movzx edi, word [esp + 0x80]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x10], edi
js 0x77198f
movzx edi, word [esp + 0x82]
add ecx, ecx
sub ecx, edi
js 0x77198f
mov dword [esp + 0x2c], edi
movzx edi, word [esp + 0x84]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0xc], edi
js 0x77198f
movzx edi, word [esp + 0x86]
add ecx, ecx
sub ecx, edi
js 0x77198f
mov dword [esp + 0x40], edi
movzx edi, word [esp + 0x88]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x28], edi
js 0x77198f
movzx edi, word [esp + 0x8a]
add ecx, ecx
sub ecx, edi
js 0x77198f
mov dword [esp + 0x3c], edi
movzx edi, word [esp + 0x8c]
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x14], edi
js 0x77198f
movzx edi, word [esp]
add ecx, ecx
mov dword [esp + 0x18], edx
sub ecx, edi
js 0x77198f
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 4]
test ecx, ecx
jne 0x77157f
jmp 0x771596
cmp word [esp + 0x8a], 0
je 0x771ad4
mov ebp, 0xd
jmp 0x77152a
cmp word [esp + 0x88], 0
je 0x771ae9
mov ebp, 0xc
jmp 0x77152a
cmp word [esp + 0x86], 0
je 0x771afe
mov ebp, 0xb
jmp 0x77152a
cmp word [esp + 0x84], 0
je 0x771b13
mov ebp, 0xa
jmp 0x77152a
cmp word [esp + 0x82], 0
je 0x771b28
mov ebp, 9
jmp 0x77152a
cmp word [esp + 0x80], 0
je 0x771b3d
mov ebp, 8
jmp 0x77152a
cmp word [esp + 0x7e], 0
je 0x771b4f
mov ebp, 7
jmp 0x77152a
cmp word [esp + 0x7c], 0
je 0x771b61
mov ebp, 6
jmp 0x77152a
cmp word [esp + 0x7a], 0
je 0x771b73
mov ebp, 5
jmp 0x77152a
cmp word [esp + 0x78], 0
je 0x771b85
mov ebp, 4
jmp 0x77152a
cmp word [esp + 0x76], 0
je 0x771b97
mov ebp, 3
jmp 0x77152a
cmp word [esp + 0x74], 0
je 0x771ba9
mov ebp, 2
jmp 0x77152a
cmp word [esp + 0x72], 0
jne 0x771bed
mov eax, dword [esp + 0xb4]
mov edx, eax
mov eax, dword [eax]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov dword [eax], 0x140
mov eax, dword [edx]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax], 0x140
mov dword [ecx], 1
jmp 0x77198d
mov edx, dword [esi]
jmp 0x771516
xor ecx, ecx
test edx, edx
mov ebp, 1
mov dword [esp], 0
mov ebx, 1
setne cl
mov edx, ecx
jmp 0x771546