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

Disassembly:
push ebp
push edi
push esi
push ebx
add esp, 0xffffff80
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test ebp, ebp
je 0x647660c3
mov eax, dword [esp + 0x98]
lea ecx, [eax + ebp*2]
movzx edx, word [eax]
inc word [esp + edx*2 + 0x40]
add eax, 2
cmp eax, ecx
jne 0x647660b4
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
movzx ecx, word [esp + 0x5e]
test cx, cx
jne 0x647661c2
cmp word [esp + 0x5c], 0
jne 0x64766813
cmp word [esp + 0x5a], 0
jne 0x64766820
cmp word [esp + 0x58], 0
jne 0x6476682d
cmp word [esp + 0x56], 0
jne 0x6476683a
cmp word [esp + 0x54], 0
jne 0x64766847
cmp word [esp + 0x52], 0
jne 0x647668ac
cmp word [esp + 0x50], 0
jne 0x6476689f
cmp word [esp + 0x4e], 0
jne 0x64766878
cmp word [esp + 0x4c], 0
jne 0x647668b9
cmp word [esp + 0x4a], 0
jne 0x64766892
cmp word [esp + 0x48], 0
jne 0x6476685e
cmp word [esp + 0x46], 0
jne 0x6476686b
cmp word [esp + 0x44], 0
jne 0x64766885
cmp word [esp + 0x42], 0
jne 0x64766678
mov edx, dword [esp + 0xa0]
mov eax, dword [edx]
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov word [eax + 2], 0
mov byte [eax + 4], 0x40
mov byte [eax + 5], 1
mov word [eax + 6], 0
add eax, 8
mov dword [edx], eax
mov eax, dword [esp + 0xa4]
mov dword [eax], 1
xor eax, eax
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0xf
mov edi, dword [esp + 0x10]
cmp edi, eax
jbe 0x647661d4
mov edi, eax
cmp word [esp + 0x42], 0
jne 0x6476668b
mov eax, 1
mov edx, dword [esp + 0x10]
jmp 0x647661f4
cmp word [esp + eax*2 + 0x40], 0
jne 0x647661f9
inc eax
cmp eax, edx
jne 0x647661ec
movzx ebx, word [esp + 0x42]
mov edx, 2
sub edx, ebx
shl edx, 1
movzx esi, word [esp + 0x44]
sub edx, esi
js 0x6476669d
lea ebx, [edx + edx]
movzx edx, word [esp + 0x46]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x48]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x4a]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x4c]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x4e]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x50]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x52]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x54]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x56]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x58]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x5a]
sub ebx, edx
js 0x6476669d
shl ebx, 1
movzx edx, word [esp + 0x5c]
sub ebx, edx
js 0x6476669d
lea edx, [ebx + ebx]
sub edx, ecx
cmp edx, 0
jl 0x6476669d
je 0x647662f3
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x6476669d
cmp dword [esp + 0x10], 1
jne 0x6476669d
mov word [esp + 0x62], 0
mov dx, word [esp + 0x42]
mov word [esp + 0x64], dx
add edx, dword [esp + 0x44]
mov word [esp + 0x66], dx
add dx, word [esp + 0x46]
mov word [esp + 0x68], dx
add edx, dword [esp + 0x48]
mov word [esp + 0x6a], dx
add dx, word [esp + 0x4a]
mov word [esp + 0x6c], dx
add edx, dword [esp + 0x4c]
mov word [esp + 0x6e], dx
add dx, word [esp + 0x4e]
mov word [esp + 0x70], dx
add edx, dword [esp + 0x50]
mov word [esp + 0x72], dx
add dx, word [esp + 0x52]
mov word [esp + 0x74], dx
add edx, dword [esp + 0x54]
mov word [esp + 0x76], dx
add dx, word [esp + 0x56]
mov word [esp + 0x78], dx
add edx, dword [esp + 0x58]
mov word [esp + 0x7a], dx
add dx, word [esp + 0x5a]
mov word [esp + 0x7c], dx
add edx, dword [esp + 0x5c]
mov word [esp + 0x7e], dx
xor edx, edx
test ebp, ebp
je 0x647663c3
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov esi, dword [esp + 0x98]
movzx ecx, word [esi + edx*2]
test cx, cx
je 0x647663b6
mov bx, word [esp + ecx*2 + 0x60]
movzx edi, bx
mov eax, dword [esp + 0xa8]
mov word [eax + edi*2], dx
inc ebx
mov word [esp + ecx*2 + 0x60], bx
inc edx
cmp edx, ebp
jne 0x64766394
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
cmp eax, edi
jae 0x647663cf
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x94]
test edx, edx
jne 0x64766760
mov edx, dword [esp + 0xa0]
mov edx, dword [edx]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], 1
mov cl, byte [esp + 0x24]
shl dword [esp + 0x28], cl
mov edx, dword [esp + 0x28]
dec edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], 0x13
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x30], 0xffffffff
xor edi, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov ebp, esi
mov eax, edx
mov bl, byte [esp + 0xc]
sub ebx, dword [esp + 0x14]
mov si, word [eax]
movzx eax, si
cmp eax, dword [esp + 0x2c]
jl 0x64766640
jle 0x64766648
shl eax, 1
mov ecx, dword [esp + 0x3c]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 0x38]
mov si, word [ecx + eax]
mov ecx, dword [esp + 0xc]
sub ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
mov dword [esp + 4], eax
mov eax, 1
mov ecx, ebp
shl eax, cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 4]
neg eax
shl eax, 2
mov dword [esp + 8], eax
mov eax, edi
mov cl, byte [esp + 0x14]
shr eax, cl
add eax, dword [esp + 0x1c]
sub eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
nop
mov byte [eax], dl
mov byte [eax + 1], bl
mov word [eax + 2], si
add eax, dword [esp + 8]
sub ecx, dword [esp + 4]
jne 0x647664bc
mov ecx, dword [esp + 0xc]
dec ecx
mov eax, 1
shl eax, cl
test eax, edi
je 0x647664e6
nop
shr eax, 1
test edi, eax
jne 0x647664e0
test eax, eax
je 0x64766638
lea edx, [eax - 1]
and edx, edi
lea edi, [edx + eax]
mov eax, dword [esp + 0xc]
mov ax, word [esp + eax*2 + 0x40]
mov word [esp + 2], ax
dec eax
mov edx, dword [esp + 0xc]
mov word [esp + edx*2 + 0x40], ax
test ax, ax
jne 0x64766536
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x647666aa
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 2]
mov edx, dword [esp + 0x98]
movzx eax, word [edx + eax*2]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x24], eax
jae 0x64766628
mov ebx, dword [esp + 0x34]
and ebx, edi
cmp ebx, dword [esp + 0x30]
je 0x64766628
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x64766564
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [edx + eax*4]
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0xc]
sub ebp, dword [esp + 0x14]
mov edx, 1
mov ecx, ebp
shl edx, cl
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
jae 0x647665c2
mov ecx, dword [esp + 0xc]
movzx eax, word [esp + ecx*2 + 0x40]
sub edx, eax
test edx, edx
jle 0x647665c2
mov eax, dword [esp + 0x14]
lea ecx, [esp + eax*2 + 0x40]
mov esi, eax
jmp 0x647665b6
movzx eax, word [ecx + ebp*2]
sub edx, eax
test edx, edx
jle 0x647665c2
inc ebp
shl edx, 1
lea eax, [esi + ebp]
cmp dword [esp + 0x10], eax
ja 0x647665ac
mov eax, 1
mov ecx, ebp
shl eax, cl
add dword [esp + 0x28], eax
cmp dword [esp + 0x94], 1
je 0x64766668
cmp dword [esp + 0x94], 2
je 0x64766651
lea eax, [ebx*4]
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov ecx, ebp
mov byte [edx + eax], cl
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov cl, byte [esp + 0x24]
mov byte [edx + eax + 1], cl
mov edx, dword [esp + 0xa0]
mov ecx, dword [edx]
mov edx, dword [esp + 0x20]
sub edx, ecx
sar edx, 2
mov word [ecx + eax + 2], dx
mov dword [esp + 0x30], ebx
add dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
jmp 0x64766444
xor edi, edi
jmp 0x647664f6
xor edx, edx
jmp 0x64766473
xor esi, esi
mov dl, 0x60
jmp 0x64766473
cmp dword [esp + 0x28], 0x24f
jbe 0x647665e7
mov eax, 1
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x28], 0x353
jbe 0x647665e7
jmp 0x6476665b
mov edi, eax
test eax, eax
je 0x64766683
mov edi, 1
mov dword [esp + 0x10], 1
movzx eax, word [esp + 0x42]
mov edx, 2
sub edx, eax
jns 0x64766854
mov eax, 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + 4], bl
mov ebx, ecx
test edi, edi
je 0x64766731
mov dl, byte [esp + 0x24]
mov esi, 1
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x64766758
mov eax, dword [esp + 0x34]
and eax, edi
cmp dword [esp + 0x30], eax
je 0x6476675c
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov byte [esp + 4], dl
xor ecx, ecx
xor ebp, ebp
mov eax, dword [esp + 0x24]
lea ebx, [eax - 1]
mov eax, edi
shr eax, cl
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax*4]
mov byte [eax], 0x40
mov cl, byte [esp + 4]
mov byte [eax + 1], cl
mov word [eax + 2], 0
mov eax, esi
mov cl, bl
shl eax, cl
test eax, edi
je 0x64766722
nop
shr eax, 1
test edi, eax
jne 0x6476671c
test eax, eax
je 0x64766731
lea ecx, [eax - 1]
and ecx, edi
mov edi, ecx
add edi, eax
jne 0x647666c1
mov eax, dword [esp + 0x28]
shl eax, 2
mov edx, dword [esp + 0xa0]
add dword [edx], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xa4]
mov dword [eax], ecx
xor eax, eax
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
jmp 0x647666f5
mov ecx, ebp
jmp 0x647666f5
cmp dword [esp + 0x94], 1
je 0x647667c5
mov edx, dword [esp + 0xa0]
mov edx, dword [edx]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], 1
mov cl, byte [esp + 0x24]
shl dword [esp + 0x28], cl
mov edx, dword [esp + 0x28]
dec edx
mov dword [esp + 0x34], edx
cmp dword [esp + 0x94], 2
jne 0x647667a8
cmp dword [esp + 0x28], 0x24f
ja 0x6476665b
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x3c], 0x648175a0
mov dword [esp + 0x38], 0x64817520
jmp 0x6476641b
mov edx, dword [esp + 0xa0]
mov edx, dword [edx]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x94]
mov cl, byte [esp + 0x24]
shl edx, cl
mov dword [esp + 0x28], edx
dec edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x3c], 0x6481735e
mov dword [esp + 0x38], 0x648172de
cmp dword [esp + 0x28], 0x353
jbe 0x6476641b
jmp 0x6476665b
mov dword [esp + 0x10], 0xe
jmp 0x647661ca
mov dword [esp + 0x10], 0xd
jmp 0x647661ca
mov dword [esp + 0x10], 0xc
jmp 0x647661ca
mov dword [esp + 0x10], 0xb
jmp 0x647661ca
mov dword [esp + 0x10], 0xa
jmp 0x647661ca
mov eax, 1
jmp 0x64766205
mov dword [esp + 0x10], 4
jmp 0x647661ca
mov dword [esp + 0x10], 3
jmp 0x647661ca
mov dword [esp + 0x10], 7
jmp 0x647661ca
mov dword [esp + 0x10], 2
jmp 0x647661ca
mov dword [esp + 0x10], 5
jmp 0x647661ca
mov dword [esp + 0x10], 8
jmp 0x647661ca
mov dword [esp + 0x10], 9
jmp 0x647661ca
mov dword [esp + 0x10], 6
jmp 0x647661ca