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

Disassembly:
mov ecx, dword [0x6de134]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x505961
sub esp, 0x88
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x18c]
test ecx, ecx
jne 0x50550b
mov ecx, dword [esp + 0x94]
inc ecx
mov edx, dword [esp + 0x98]
cmp edx, ecx
jb 0x50542f
mov ebx, dword [esp + 0x90]
jmp 0x50546d
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, [0x5674a0]
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 0x5054c5
mov edx, dword [esp + 0xa4]
cmp edx, 0xffff
jg 0x5054bf
lea ebx, [edx + 5]
shl ebx, 3
mov ecx, 1
jmp 0x5054d0
xor ecx, ecx
xor ebx, ebx
jmp 0x5054d0
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 0x505507
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 0x505893
xor edi, edi
jmp 0x505512
add esp, 0x88
ret
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edi
mov eax, dword [0x69f428]
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 0x505564
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 0x505599
mov esi, dword [ebx + edi*4]
test esi, esi
je 0x505593
mov ebp, dword [eax + 4]
cmp edi, ebp
jae 0x50584f
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 0x50554d
mov ebp, dword [esp + 0x34]
jmp 0x50554d
mov dword [esp + 0x80], eax
mov ebx, dword [0x69f42c]
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 0x5055e2
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 0x505617
mov eax, dword [edi + esi*4]
test eax, eax
je 0x505611
mov ebp, dword [ebx + 4]
cmp esi, ebp
jae 0x505846
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 0x5055c8
mov ebp, dword [esp + 0x30]
jmp 0x5055c8
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 0x5056dd
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 0x5056f8
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 0x505758
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x505758
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 [0x69f428], ebp
jne 0x5057b5
mov eax, dword [edx + 0x18c]
test eax, eax
jne 0x5057f3
movzx eax, byte [esp + 0x9c]
test al, al
je 0x505788
mov eax, 3
jmp 0x50578d
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 0x5057f3
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 [0x699cb8]
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 0x5058c7
mov eax, dword [edi + 0x160]
cmp edx, eax
jae 0x505957
mov eax, dword [edi + 0x15c]
mov ebx, dword [0x699cbc]
lea ecx, [edx - 0x101]
mov eax, dword [eax + edx*4]
cmp ebx, ecx
ja 0x505858
jmp 0x50594e
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
jmp 0x505905
mov ecx, dword [0x699cd8]
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 0x50592c
mov eax, dword [edi + 0x16c]
cmp ebx, eax
jae 0x505945
mov eax, dword [edi + 0x168]
mov ecx, dword [0x699cdc]
mov eax, dword [eax + ebx*4]
cmp ebx, ecx
jb 0x5058de
jmp 0x50593e
mov ebx, dword [esp + 0x2c]
mov edi, edx
mov edx, dword [esp + 0xa4]
jmp 0x505512
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