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

Disassembly:
mov ecx, dword [0x664c04]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x4e7d51
sub esp, 0x88
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x18c]
test ecx, ecx
jne 0x4e78fb
mov ecx, dword [esp + 0x94]
inc ecx
mov edx, dword [esp + 0x98]
cmp edx, ecx
jb 0x4e781f
mov ebx, dword [esp + 0x90]
jmp 0x4e785d
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5237c0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov dword [ebx + ecx*4 - 4], 0x100
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call sym.compress_flate._huffmanBitWriter_.indexTokens
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x4e78b5
mov edx, dword [esp + 0xa4]
cmp edx, 0xffff
jg 0x4e78af
lea ebx, [edx + 5]
shl ebx, 3
mov ecx, 1
jmp 0x4e78c0
xor ecx, ecx
xor ebx, ebx
jmp 0x4e78c0
mov edx, dword [esp + 0xa4]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x2b], cl
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test cl, cl
je 0x4e78f7
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x5c], eax
mov eax, 0x109
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
jmp 0x4e7c83
xor edi, edi
jmp 0x4e7902
add esp, 0x88
ret
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edi
mov eax, dword [0x62527c]
mov edx, dword [esp + 0x8c]
mov ebx, dword [edx + 0x15c]
mov ecx, dword [edx + 0x160]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
jmp 0x4e7954
lea esi, [edi + 1]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
cmp edi, ecx
jge 0x4e7989
mov esi, dword [ebx + edi*4]
test esi, esi
je 0x4e7983
mov ebp, dword [eax + 4]
cmp edi, ebp
jae 0x4e7c3f
mov ebp, dword [eax]
lea ebp, [ebp + edi*4 + 2]
movzx ebp, word [ebp]
imul esi, ebp
mov ebp, dword [esp + 0x34]
add ebp, esi
jmp 0x4e793d
mov ebp, dword [esp + 0x34]
jmp 0x4e793d
mov dword [esp + 0x80], eax
mov ebx, dword [0x625280]
mov edi, dword [edx + 0x168]
mov ecx, dword [edx + 0x16c]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
jmp 0x4e79d2
lea eax, [esi + 1]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
cmp esi, ecx
jge 0x4e7a07
mov eax, dword [edi + esi*4]
test eax, eax
je 0x4e7a01
mov ebp, dword [ebx + 4]
cmp esi, ebp
jae 0x4e7c36
mov ebp, dword [ebx]
lea ebp, [ebp + esi*4 + 2]
movzx ebp, word [ebp]
imul eax, ebp
mov ebp, dword [esp + 0x30]
add ebp, eax
jmp 0x4e79b8
mov ebp, dword [esp + 0x30]
jmp 0x4e79b8
mov dword [esp + 0x7c], ebx
mov eax, dword [edx + 0x180]
mov ecx, dword [edx + 0x184]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call sym.compress_flate._huffmanBitWriter_.generateCodegen
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x188]
mov dword [esp], ecx
lea ecx, [eax + 0x10c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], 0x13
mov dword [esp + 0x10], 7
call sym.compress_flate._huffmanEncoder_.generate
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x180]
mov edx, dword [eax + 0x184]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], ecx
call sym.compress_flate._huffmanBitWriter_.dynamicSize
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x50]
lea ecx, [edx + ecx + 3]
cmp eax, ecx
jge 0x4e7acd
mov edx, dword [esp + 0x8c]
mov ebp, dword [edx + 0x180]
mov ebx, dword [edx + 0x184]
movzx esi, byte [esp + 0x2b]
xchg esi, eax
test al, al
xchg esi, eax
jmp 0x4e7ae8
movzx edx, byte [esp + 0x2b]
test dl, dl
mov edx, dword [esp + 0x8c]
mov eax, ecx
mov ebp, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
je 0x4e7b48
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x4e7b48
mov dword [esp], edx
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
movzx ecx, byte [esp + 0x9c]
mov byte [esp + 8], cl
call sym.compress_flate._huffmanBitWriter_.writeStoredHeader
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], eax
call sym.compress_flate._huffmanBitWriter_.writeBytes
add esp, 0x88
ret
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
cmp dword [0x62527c], ebp
jne 0x4e7ba5
mov eax, dword [edx + 0x18c]
test eax, eax
jne 0x4e7be3
movzx eax, byte [esp + 0x9c]
test al, al
je 0x4e7b78
mov eax, 3
jmp 0x4e7b7d
mov eax, 2
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 3
call sym.compress_flate._huffmanBitWriter_.writeBits
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
jmp 0x4e7be3
mov eax, dword [esp + 0x14]
mov dword [esp], edx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x9c]
mov byte [esp + 0x10], al
call sym.compress_flate._huffmanBitWriter_.writeDynamicHeader
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov dword [esp], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call sym.compress_flate._huffmanBitWriter_.writeTokens
add esp, 0x88
ret
mov eax, esi
mov ecx, ebp
call sym.runtime.panicIndex
mov eax, edi
mov ecx, ebp
call sym.runtime.panicIndex
mov ecx, dword [0x6201c8]
lea ecx, [edx + ecx - 0x101]
movsx ecx, byte [ecx]
imul eax, ecx
lea ecx, [edx + 1]
mov edx, dword [esp + 0x50]
add eax, edx
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xa0]
movzx ecx, byte [esp + 0x2b]
mov edx, dword [esp + 0x44]
cmp edx, ebp
jge 0x4e7cb7
mov eax, dword [edi + 0x160]
cmp edx, eax
jae 0x4e7d47
mov eax, dword [edi + 0x15c]
mov ebx, dword [0x6201cc]
lea ecx, [edx - 0x101]
mov eax, dword [eax + edx*4]
cmp ebx, ecx
ja 0x4e7c48
jmp 0x4e7d3e
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
jmp 0x4e7cf5
mov ecx, dword [0x6201e8]
add ecx, ebx
movsx ecx, byte [ecx]
imul eax, ecx
lea ecx, [ebx + 1]
add edx, eax
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
movzx ecx, byte [esp + 0x2b]
mov ebx, dword [esp + 0x38]
cmp ebx, esi
jge 0x4e7d1c
mov eax, dword [edi + 0x16c]
cmp ebx, eax
jae 0x4e7d35
mov eax, dword [edi + 0x168]
mov ecx, dword [0x6201ec]
mov eax, dword [eax + ebx*4]
cmp ebx, ecx
jb 0x4e7cce
jmp 0x4e7d2e
mov ebx, dword [esp + 0x2c]
mov edi, edx
mov edx, dword [esp + 0xa4]
jmp 0x4e7902
mov eax, ebx
call sym.runtime.panicIndex
mov ecx, eax
mov eax, ebx
call sym.runtime.panicIndex
mov eax, ecx
mov ecx, ebx
call sym.runtime.panicIndex
mov ecx, eax
mov eax, edx
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.compress_flate._huffmanBitWriter_.writeBlock