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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x90
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0xa4]
mov edx, dword [edx]
dec edx
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0xa4]
mov eax, dword [ebx + 4]
lea eax, [edx + eax - 5]
mov dword [esp + 0x38], eax
mov esi, dword [ebx + 0xc]
mov dword [esp], esi
dec esi
mov dword [esp + 0x18], esi
mov edx, dword [ebx + 0x10]
mov eax, edx
sub eax, dword [esp + 0xa8]
add esi, eax
mov dword [esp + 0x50], esi
mov ebx, dword [esp + 0x18]
lea edx, [ebx + edx - 0x101]
mov dword [esp + 0x28], edx
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0x28]
mov dword [esp + 0x48], esi
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0x38]
mov ebp, dword [edx + 0x3c]
mov edi, dword [edx + 0x4c]
mov ebx, dword [edx + 0x50]
mov dword [esp + 0x44], ebx
mov ecx, dword [edx + 0x54]
mov edx, 1
mov ebx, edx
shl ebx, cl
dec ebx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x58]
mov dword [esp + 4], ebx
mov cl, byte [esp + 4]
shl edx, cl
dec edx
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x2c]
dec ebx
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [esp + 0x30], edx
shl edx, 2
mov dword [esp + 0x34], edx
sete byte [esp + 0x63]
mov ebx, dword [esp + 0x20]
sub ebx, edx
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x40]
add ebx, edx
mov dword [esp + 0x68], ebx
add eax, dword [esp]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x2c]
add edx, 4
mov dword [esp + 0x6c], edx
cmp ebp, 0xe
ja 0x590635
mov ebx, dword [esp + 0x1c]
movzx edx, byte [ebx + 1]
mov ecx, ebp
shl edx, cl
movzx eax, byte [ebx + 2]
lea ecx, [ebp + 8]
shl eax, cl
add eax, edx
add esi, eax
add ebp, 0x10
add ebx, 2
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x3c]
and eax, esi
lea eax, [edi + eax*4]
jmp 0x590665
test bl, 0x10
jne 0x59070c
test bl, 0x40
jne 0x5909b8
mov edx, 1
mov cl, bl
shl edx, cl
mov ebx, edx
dec ebx
and ebx, esi
add ebx, eax
lea eax, [edi + ebx*4]
mov bl, byte [eax]
mov cl, byte [eax + 1]
movzx eax, word [eax + 2]
movzx edx, cl
shr esi, cl
sub ebp, edx
test bl, bl
jne 0x590640
mov ebx, dword [esp + 0x18]
mov byte [ebx + 1], al
inc ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x1c], ebx
jae 0x5906a0
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x18], eax
jb 0x59060d
lea esi, [esi]
mov edx, ebp
shr edx, 3
mov eax, dword [esp + 0x1c]
sub eax, edx
shl edx, 3
mov ecx, ebp
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
and edx, esi
lea ebx, [eax + 1]
mov esi, dword [esp + 0xa4]
mov dword [esi], ebx
mov ebx, dword [esp + 0x18]
inc ebx
mov dword [esi + 0xc], ebx
mov ebx, dword [esp + 0x38]
sub ebx, eax
mov eax, ebx
add eax, 5
mov dword [esi + 4], eax
mov esi, dword [esp + 0x28]
mov eax, esi
sub eax, dword [esp + 0x18]
add eax, 0x101
mov ebx, dword [esp + 0xa4]
mov dword [ebx + 0x10], eax
mov esi, dword [esp + 0x14]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
add esp, 0x90
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
and ebx, 0xf
movzx eax, bl
test eax, eax
je 0x59074c
cmp eax, ebp
jbe 0x590738
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + 1]
mov ecx, ebp
shl edx, cl
add esi, edx
add ebp, 8
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
mov edx, 1
mov cl, bl
shl edx, cl
dec edx
and edx, esi
add dword [esp + 0x10], edx
shr esi, cl
sub ebp, eax
cmp ebp, 0xe
jbe 0x5909cc
mov eax, dword [esp + 0x4c]
and eax, esi
mov ebx, dword [esp + 0x44]
lea edx, [ebx + eax*4]
mov al, byte [edx]
mov cl, byte [edx + 1]
movzx edx, word [edx + 2]
movzx ebx, cl
shr esi, cl
sub ebp, ebx
test al, 0x10
jne 0x5907bb
test al, 0x40
jne 0x590a14
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x44]
jmp 0x590790
test al, 0x40
jne 0x590a14
mov ebx, 1
mov cl, al
shl ebx, cl
mov eax, ebx
dec eax
and eax, esi
add eax, edx
lea edx, [edi + eax*4]
mov al, byte [edx]
mov cl, byte [edx + 1]
movzx edx, word [edx + 2]
movzx ebx, cl
shr esi, cl
sub ebp, ebx
test al, 0x10
je 0x590788
mov edi, dword [esp + 0x24]
mov dword [esp + 0x70], edx
and eax, 0xf
movzx ebx, al
cmp ebx, ebp
jbe 0x5907e8
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + 1]
mov ecx, ebp
shl edx, cl
add esi, edx
lea ecx, [ebp + 8]
cmp ebx, ecx
ja 0x590cae
inc dword [esp + 0x1c]
mov ebp, ecx
mov edx, 1
mov cl, al
shl edx, cl
dec edx
and edx, esi
mov dword [esp + 0x24], edx
add edx, dword [esp + 0x70]
mov dword [esp + 0x74], edx
shr esi, cl
sub ebp, ebx
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x50]
cmp edx, eax
jbe 0x590a31
mov ebx, edx
sub ebx, eax
cmp dword [esp + 0x54], ebx
jae 0x590830
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x1bc0]
test edx, edx
jne 0x590df5
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x590ab1
mov edx, dword [esp + 0x48]
sub edx, ebx
add edx, dword [esp + 0x40]
cmp dword [esp + 0x10], ebx
jbe 0x59094a
sub dword [esp + 0x10], ebx
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
sub ecx, eax
sub ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x7c], eax
mov eax, ebx
shr eax, 2
mov dword [esp + 0x80], eax
shl eax, 2
mov dword [esp + 0x70], eax
lea eax, [ecx + 5]
cmp dword [esp + 0x7c], eax
setae byte [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, 5
cmp dword [esp + 0x78], eax
setae al
or byte [esp + 0x24], al
cmp ebx, 9
seta al
and byte [esp + 0x24], al
mov eax, dword [esp + 0x78]
or eax, dword [esp + 0x7c]
test al, 3
sete al
test byte [esp + 0x24], al
je 0x590e1d
mov eax, dword [esp + 0x70]
test eax, eax
je 0x590e1d
xor eax, eax
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x80]
lea esi, [esi]
mov ebx, dword [ecx + eax*4 + 1]
mov dword [edi + eax*4 + 1], ebx
inc eax
cmp edx, eax
ja 0x5908f8
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x70]
mov ecx, ebx
sub ecx, dword [esp + 0x70]
add edx, dword [esp + 0x70]
cmp ebx, dword [esp + 0x70]
je 0x59093e
add ecx, eax
mov dword [esp + 0x24], ebx
nop
inc eax
inc edx
mov bl, byte [edx]
mov byte [eax], bl
cmp eax, ecx
jne 0x590930
mov ebx, dword [esp + 0x24]
add dword [esp + 0x18], ebx
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x74]
cmp dword [esp + 0x10], 2
jbe 0x590982
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea esi, [esi]
mov bl, byte [edx + 1]
mov byte [eax + 1], bl
mov bl, byte [edx + 2]
mov byte [eax + 2], bl
add eax, 3
add edx, 3
mov bl, byte [edx]
mov byte [eax], bl
sub ecx, 3
cmp ecx, 2
ja 0x59095c
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x590685
mov al, byte [edx + 1]
mov ebx, dword [esp + 0x18]
mov byte [ebx + 1], al
cmp dword [esp + 0x10], 2
jne 0x590dd2
mov eax, ebx
mov dl, byte [edx + 2]
mov byte [ebx + 2], dl
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x590685
and ebx, 0x20
je 0x5909f4
mov ebx, dword [esp + 0x14]
mov dword [ebx], 0xb
jmp 0x5906a0
mov ebx, dword [esp + 0x1c]
movzx edx, byte [ebx + 1]
mov ecx, ebp
shl edx, cl
movzx eax, byte [ebx + 2]
lea ecx, [ebp + 8]
shl eax, cl
add eax, edx
add esi, eax
add ebp, 0x10
add ebx, 2
mov dword [esp + 0x1c], ebx
jmp 0x590755
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov edx, dword [esp + 0x14]
mov dword [edx], 0x1d
jmp 0x5906a0
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x18], str.invalid_distance_code
mov edx, dword [esp + 0x14]
mov dword [edx], 0x1d
jmp 0x5906a0
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], edi
jmp 0x590a4e
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dl, byte [eax + 1]
mov byte [ecx + 1], dl
mov dl, byte [eax + 2]
mov byte [ecx + 2], dl
lea edx, [ecx + 3]
mov dword [esp + 0x70], edx
lea edi, [eax + 3]
mov dl, byte [eax + 3]
mov byte [ecx + 3], dl
sub ebx, 3
cmp ebx, 2
ja 0x590a48
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x70]
test ebx, ebx
je 0x590ccd
mov bl, byte [eax + 4]
mov byte [ecx + 4], bl
cmp dword [esp + 0x10], 2
jne 0x590ddc
mov al, byte [eax + 5]
mov edx, dword [esp + 0x18]
mov byte [edx + 5], al
add edx, 5
mov dword [esp + 0x18], edx
jmp 0x590685
cmp dword [esp + 0x20], ebx
jae 0x590cd6
mov edx, dword [esp + 0x5c]
sub edx, ebx
add edx, dword [esp + 0x40]
sub ebx, dword [esp + 0x20]
mov dword [esp + 0x7c], ebx
cmp dword [esp + 0x10], ebx
jbe 0x59094a
sub dword [esp + 0x10], ebx
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x5c]
sub ecx, eax
sub ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x2c]
lea ebx, [ecx + 1]
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x8c], eax
mov ebx, dword [esp + 0x7c]
shr ebx, 2
lea eax, [ebx*4]
mov dword [esp + 0x80], eax
lea eax, [ecx + 5]
cmp dword [esp + 0x8c], eax
setae byte [esp + 0x78]
mov eax, dword [esp + 0x18]
add eax, 5
cmp dword [esp + 0x84], eax
setae al
or byte [esp + 0x78], al
cmp dword [esp + 0x7c], 9
seta al
and byte [esp + 0x78], al
mov eax, dword [esp + 0x84]
or eax, dword [esp + 0x8c]
test al, 3
sete al
test byte [esp + 0x78], al
je 0x590e30
mov eax, dword [esp + 0x80]
test eax, eax
je 0x590e30
xor eax, eax
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x78], edx
mov edx, dword [ecx + eax*4 + 1]
mov dword [edi + eax*4 + 1], edx
inc eax
cmp ebx, eax
ja 0x590b94
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x80]
add edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x80]
cmp dword [esp + 0x7c], ebx
je 0x590be2
add ecx, eax
inc eax
inc edx
mov bl, byte [edx]
mov byte [eax], bl
cmp eax, ecx
jne 0x590bd8
mov ebx, dword [esp + 0x18]
add ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jae 0x590de8
mov edx, dword [esp + 0x20]
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
sub eax, edx
add eax, dword [esp + 0x70]
add eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add edx, eax
lea eax, [edx + 4]
cmp dword [esp + 0x2c], eax
setae cl
cmp edx, dword [esp + 0x6c]
setae al
or ecx, eax
cmp dword [esp + 0x20], 9
seta al
and ecx, eax
mov eax, dword [esp + 0x2c]
or eax, edx
test al, 3
sete al
test cl, al
je 0x590e0e
cmp byte [esp + 0x63], 0
jne 0x590e0e
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov ebx, dword [ecx + eax*4]
mov dword [edx + eax*4], ebx
inc eax
cmp dword [esp + 0x30], eax
ja 0x590c5e
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
add edx, ebx
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x20], eax
je 0x590c9b
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
add ecx, edx
mov dword [esp + 0x18], ebx
inc edx
inc eax
mov bl, byte [eax]
mov byte [edx], bl
cmp edx, ecx
jne 0x590c8d
mov ebx, dword [esp + 0x18]
add ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov edx, ebx
sub edx, dword [esp + 0x74]
jmp 0x59094a
mov edx, dword [esp + 0x1c]
movzx edx, byte [edx + 2]
shl edx, cl
add esi, edx
add ebp, 0x10
mov edx, dword [esp + 0x1c]
add edx, 2
mov dword [esp + 0x1c], edx
jmp 0x5907e8
mov dword [esp + 0x18], edx
jmp 0x590685
mov edx, dword [esp + 0x20]
sub edx, ebx
add edx, dword [esp + 0x40]
cmp dword [esp + 0x10], ebx
jbe 0x59094a
sub dword [esp + 0x10], ebx
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub ecx, eax
sub ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x80], eax
mov eax, ebx
shr eax, 2
mov dword [esp + 0x70], eax
shl eax, 2
mov dword [esp + 0x78], eax
lea eax, [ecx + 5]
cmp dword [esp + 0x80], eax
setae byte [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, 5
cmp dword [esp + 0x7c], eax
setae al
or byte [esp + 0x24], al
cmp ebx, 9
seta al
and byte [esp + 0x24], al
mov eax, dword [esp + 0x7c]
or eax, dword [esp + 0x80]
test al, 3
sete al
test byte [esp + 0x24], al
je 0x590e28
mov eax, dword [esp + 0x78]
test eax, eax
je 0x590e28
xor eax, eax
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + eax*4 + 1]
mov dword [edi + eax*4 + 1], edx
inc eax
cmp dword [esp + 0x70], eax
ja 0x590d8a
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x78]
mov ecx, ebx
sub ecx, dword [esp + 0x78]
add edx, dword [esp + 0x78]
cmp ebx, dword [esp + 0x78]
je 0x59093e
add ecx, eax
mov dword [esp + 0x24], ebx
inc eax
inc edx
mov bl, byte [edx]
mov byte [eax], bl
cmp eax, ecx
jne 0x590dc3
jmp 0x59093a
inc ebx
mov dword [esp + 0x18], ebx
jmp 0x590685
add ecx, 4
mov dword [esp + 0x18], ecx
jmp 0x590685
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], ebx
jmp 0x59094a
mov edx, dword [esp + 0xa4]
mov dword [edx + 0x18], str.invalid_distance_too_far_back
mov dword [eax], 0x1d
jmp 0x5906a0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, ebx
jmp 0x590c87
mov ecx, ebx
mov eax, dword [esp + 0x18]
jmp 0x590929
mov ecx, ebx
mov eax, dword [esp + 0x18]
jmp 0x590dbd
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
jmp 0x590bd6