Function at 0x59748c
Capabilities:
Compress data via zlib inflate or deflate
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [esp + 0xb0]
test edi, edi
je case.default.0x59711d
mov ebx, dword [esp + 0xb0]
mov esi, dword [ebx + 0x20]
test esi, esi
je case.default.0x59711d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je case.default.0x59711d
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x30], ebx
test ebx, ebx
je case.default.0x59711d
mov esi, dword [esp + 0xb0]
cmp esi, dword [ebx]
je 0x597068
mov dword [esp + 0x48], 0xfffffffe
mov eax, dword [esp + 0x48]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 4]
cmp eax, 0x3f33
jbe case.default.0x59711d
cmp eax, 0x3f53
ja case.default.0x59711d
mov ebx, dword [esp + 0xb0]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x58], ebx
test ebx, ebx
je case.default.0x59711d
mov edi, dword [esp + 0xb0]
mov ebx, dword [edi]
test ebx, ebx
je 0x5983e4
mov edx, dword [edi + 4]
mov dword [esp + 0x54], edx
cmp eax, 0x3f3f
je 0x5983b0
mov edi, dword [esp + 0xb0]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x44], edi
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x3c]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x40]
mov dword [esp + 0x34], ecx
mov esi, dword [esp + 0xb4]
sub esi, 5
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], edi
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x48], 0
mov edi, dword [esp + 0x30]
add edi, 0x76
mov dword [esp + 0x64], edi
mov edx, dword [esp + 0x30]
add edx, 0x534
mov dword [esp + 0x60], edx
mov edx, ebp
mov ebp, ebx
mov ebx, edx
sub eax, 0x3f34
cmp eax, 0x1e
ja case.default.0x59711d
jmp dword [eax*4 + 0x632fb0]
cmp dword [esp + 0x34], 0x1f
ja 0x59715e
test ebx, ebx
je 0x598388
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x597148
test ebx, ebx
je 0x598398
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add edx, eax
inc ebp
add ecx, 8
cmp ecx, 0x1f
jbe 0x597140
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x38]
shl edx, 0x18
mov eax, dword [esp + 0x38]
shr eax, 0x18
add edx, eax
mov eax, dword [esp + 0x38]
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, dword [esp + 0x38]
and eax, 0xff00
shl eax, 8
add eax, edx
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x1c], eax
mov esi, dword [esp + 0xb0]
mov dword [esi + 0x30], eax
mov dword [ecx + 4], 0x3f3e
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x59900b
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0059a2d4
mov esi, dword [esp + 0x30]
mov dword [esi + 0x1c], eax
mov edi, dword [esp + 0xb0]
mov dword [edi + 0x30], eax
mov dword [esi + 4], 0x3f3f
cmp dword [esp + 0x5c], 1
jbe 0x598388
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 8]
test edx, edx
jne 0x598420
cmp dword [esp + 0x34], 2
ja 0x597233
test ebx, ebx
je 0x598388
dec ebx
movzx eax, byte [ebp]
mov cl, byte [esp + 0x34]
shl eax, cl
add dword [esp + 0x38], eax
inc ebp
add dword [esp + 0x34], 8
mov eax, dword [esp + 0x38]
and eax, 1
mov esi, dword [esp + 0x30]
mov dword [esi + 8], eax
mov edx, dword [esp + 0x38]
shr edx, 1
mov eax, edx
and eax, 3
cmp eax, 2
je 0x598805
cmp eax, 3
je 0x598ba6
dec eax
je 0x598b67
mov dword [esi + 4], 0x3f41
mov eax, 0x3f41
shr edx, 2
mov dword [esp + 0x38], edx
sub dword [esp + 0x34], 3
jmp 0x59710f
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x5972ec
cmp dword [esp + 0x34], edx
jae 0x5972c9
test ebx, ebx
je 0x598388
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x5972b0
test ebx, ebx
je 0x5983cc
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add esi, eax
inc ebp
add ecx, 8
cmp ecx, edx
jb 0x5972a8
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
mov eax, 1
mov cl, dl
shl eax, cl
dec eax
and eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add dword [esi + 0x48], eax
shr dword [esp + 0x38], cl
sub dword [esp + 0x34], edx
add dword [esi + 0x1bc8], edx
mov edi, dword [esp + 0x30]
mov dword [edi + 4], 0x3f4c
mov eax, dword [esp + 0x44]
test eax, eax
je 0x598388
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov edi, dword [edx + 0x48]
cmp eax, edi
jae 0x598478
sub edi, eax
cmp edi, dword [edx + 0x30]
ja 0x59869c
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x34]
cmp edi, eax
jbe 0x598a0c
sub edi, eax
mov eax, dword [esi + 0x2c]
sub eax, edi
add eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x44]
cmp edi, edx
jbe 0x598483
mov edi, edx
jmp 0x598483
mov edi, dword [esp + 0x30]
mov dword [edi + 4], 0x3f47
cmp dword [esp + 0xb4], 6
je 0x598388
lea esi, [esi]
mov eax, dword [esp + 0x30]
mov dword [eax + 4], 0x3f48
cmp ebx, 5
jbe 0x59738e
cmp dword [esp + 0x44], 0x101
ja 0x59876a
mov esi, dword [esp + 0x30]
mov dword [esi + 0x1bc8], 0
mov edi, esi
mov esi, dword [esi + 0x50]
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
and eax, dword [esp + 0x40]
lea edx, [esi + eax*4]
mov al, byte [edx]
mov byte [esp + 0x3c], al
mov al, byte [edx + 1]
movzx edi, word [edx + 2]
movzx edx, al
cmp dword [esp + 0x34], edx
jae 0x597430
test ebx, ebx
je 0x598388
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
mov edi, esi
jmp 0x5973f8
test ebx, ebx
je 0x598398
mov edi, dword [esp + 0x4c]
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add edx, eax
inc ebp
add ecx, 8
mov eax, dword [esp + 0x40]
and eax, edx
lea esi, [edi + eax*4]
mov al, byte [esi]
mov byte [esp + 0x3c], al
mov al, byte [esi + 1]
movzx edi, word [esi + 2]
movzx esi, al
cmp esi, ecx
ja 0x5973ec
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, esi
mov esi, dword [esp + 0x4c]
cmp byte [esp + 0x3c], 0
je 0x598718
test byte [esp + 0x3c], 0xf0
je 0x598a31
movzx esi, al
mov cl, al
shr dword [esp + 0x38], cl
sub dword [esp + 0x34], edx
mov eax, dword [esp + 0x30]
mov dword [eax + 0x1bc8], esi
mov dword [eax + 0x44], edi
test byte [esp + 0x3c], 0x20
je 0x598b39
mov eax, dword [esp + 0x30]
mov dword [eax + 0x1bc8], 0xffffffff
mov dword [eax + 4], 0x3f3f
mov eax, 0x3f3f
jmp 0x59710f
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x4c]
test edx, edx
jne 0x5985e4
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x44]
mov dword [edi + 0x1bcc], eax
mov dword [edi + 4], 0x3f4a
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x54]
mov ecx, dword [eax + 0x5c]
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
and eax, dword [esp + 0x40]
lea edx, [esi + eax*4]
mov al, byte [edx]
mov byte [esp + 0x3c], al
movzx eax, byte [edx + 1]
movzx edi, word [edx + 2]
movzx edx, al
cmp dword [esp + 0x34], edx
jae 0x597545
test ebx, ebx
je 0x598388
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
mov edi, esi
jmp 0x59750c
test ebx, ebx
je 0x598398
mov edi, dword [esp + 0x4c]
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add edx, eax
inc ebp
add ecx, 8
mov eax, dword [esp + 0x40]
and eax, edx
lea esi, [edi + eax*4]
mov al, byte [esi]
mov byte [esp + 0x3c], al
movzx eax, byte [esi + 1]
movzx edi, word [esi + 2]
movzx esi, al
cmp esi, ecx
ja 0x597500
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, esi
mov esi, dword [esp + 0x4c]
test byte [esp + 0x3c], 0xf0
jne 0x5986cc
mov dword [esp + 0x68], edi
movzx ecx, al
mov dword [esp + 0x40], ecx
movzx ecx, byte [esp + 0x3c]
add ecx, dword [esp + 0x40]
mov edi, 1
shl edi, cl
dec edi
mov dword [esp + 0x4c], edi
and edi, dword [esp + 0x38]
mov cl, al
shr edi, cl
mov eax, dword [esp + 0x68]
add eax, edi
lea ecx, [esi + eax*4]
mov al, byte [ecx]
mov byte [esp + 0x3c], al
movzx eax, byte [ecx + 1]
mov byte [esp + 0x6c], al
movzx edi, word [ecx + 2]
mov ecx, dword [esp + 0x40]
add ecx, eax
cmp dword [esp + 0x34], ecx
jae 0x59760e
test ebx, ebx
je 0x598388
mov dword [esp + 0x70], edx
mov dword [esp + 0x3c], esi
jmp 0x5975c0
test ebx, ebx
je 0x598388
mov esi, dword [esp + 0x3c]
dec ebx
movzx eax, byte [ebp]
mov cl, byte [esp + 0x34]
shl eax, cl
add dword [esp + 0x38], eax
inc ebp
add dword [esp + 0x34], 8
mov eax, dword [esp + 0x38]
and eax, dword [esp + 0x4c]
mov cl, byte [esp + 0x40]
shr eax, cl
add eax, dword [esp + 0x68]
lea eax, [esi + eax*4]
mov cl, byte [eax]
mov dl, byte [eax + 1]
movzx edi, word [eax + 2]
movzx eax, dl
mov esi, dword [esp + 0x40]
add esi, eax
cmp esi, dword [esp + 0x34]
ja 0x5975b4
mov byte [esp + 0x3c], cl
mov byte [esp + 0x6c], dl
mov edx, dword [esp + 0x70]
mov cl, byte [esp + 0x40]
shr dword [esp + 0x38], cl
sub dword [esp + 0x34], edx
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
add esi, dword [edx + 0x1bc8]
movzx edx, byte [esp + 0x6c]
jmp 0x5986d6
mov ebx, dword [esp + 0x30]
mov dword [ebx + 4], 0x3f52
mov dword [esp + 0x48], 0xfffffffc
jmp 0x597058
cmp dword [esp + 0x34], 0x1f
ja 0x597686
test ebx, ebx
je 0x598388
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x597670
test ebx, ebx
je 0x598398
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add edx, eax
inc ebp
add ecx, 8
cmp ecx, 0x1f
jbe 0x597668
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x597698
mov edx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x30]
test byte [ecx + 0x15], 2
je 0x5976ac
test byte [ecx + 0xc], 4
jne 0x598dd8
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], 0x3f37
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
jmp 0x5976d3
cmp dword [esp + 0x34], 0xf
ja 0x597706
test ebx, ebx
je 0x598388
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x5976f0
test ebx, ebx
je 0x598398
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add edx, eax
inc ebp
add ecx, 8
cmp ecx, 0xf
jbe 0x5976e8
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x597723
movzx edx, byte [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
shr edx, 8
mov dword [eax + 0xc], edx
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x14]
mov eax, edx
test dh, 2
je 0x59773b
test byte [edi + 0xc], 4
jne 0x598ce7
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], 0x3f38
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
test dh, 4
jne 0x597d59
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 0x24]
test edx, edx
je 0x598816
mov dword [edx + 0x10], 0
xor edx, edx
mov edi, dword [esp + 0x30]
mov dword [edi + 4], 0x3f39
jmp 0x597c8f
cmp dword [esp + 0x34], 0xf
ja 0x5977c6
test ebx, ebx
je 0x598388
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x5977ac
test ebx, ebx
je 0x598398
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add edx, eax
inc ebp
add ecx, 8
cmp ecx, 0xf
jbe 0x5977a4
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [edx + 0x14], eax
cmp al, 8
je 0x598c21
mov ecx, dword [esp + 0xb0]
mov dword [ecx + 0x18], str.unknown_compression_method
mov dword [edx + 4], 0x3f51
mov eax, 0x3f51
jmp 0x59710f
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x598688
cmp dword [esp + 0x34], 0xf
ja 0x597842
test ebx, ebx
je 0x598388
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x597828
test ebx, ebx
je 0x5983cc
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add esi, eax
inc ebp
add ecx, 8
cmp ecx, 0xf
jbe 0x597820
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
test dl, 2
je 0x597855
cmp dword [esp + 0x38], 0x8b1f
je 0x598f69
mov esi, dword [esp + 0x30]
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x59786e
mov dword [eax + 0x30], 0xffffffff
and edx, 1
je 0x598bc9
mov edx, dword [esp + 0x38]
shl edx, 8
and edx, 0xffff
mov eax, dword [esp + 0x38]
shr eax, 8
add eax, edx
mov ecx, 0x1f
xor edx, edx
div ecx
test edx, edx
jne 0x598bc9
mov eax, dword [esp + 0x38]
and eax, 0xf
cmp eax, 8
je 0x599046
mov edx, dword [esp + 0xb0]
mov dword [edx + 0x18], str.unknown_compression_method
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], 0x3f51
mov eax, 0x3f51
jmp 0x59710f
mov eax, ebx
mov ebx, ebp
mov ebp, eax
mov dword [esp + 0x48], 0xfffffffd
mov esi, dword [esp + 0x30]
nop
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0xb0]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov ebx, dword [esp + 0x38]
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x40], ecx
mov edx, dword [esi + 0x2c]
test edx, edx
jne 0x59793c
mov ebx, dword [esp + 0x50]
cmp dword [esp + 0x44], ebx
je 0x59795c
mov eax, dword [esi + 4]
cmp eax, 0x3f50
ja 0x59795c
cmp eax, 0x3f4d
jbe 0x59793c
cmp dword [esp + 0xb4], 4
je 0x59795c
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0xb0]
call fcn.00596910
test eax, eax
jne 0x597632
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0xb0]
sub esi, dword [ebx + 4]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0xb0]
sub ebx, dword [edi + 0x10]
add dword [edi + 8], esi
add dword [edi + 0x14], ebx
mov eax, dword [esp + 0x30]
add dword [eax + 0x20], ebx
test byte [eax + 0xc], 4
je 0x5979c7
test ebx, ebx
je 0x5979c7
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [esp + 8], ebx
je 0x5983fc
mov eax, dword [edi + 0xc]
sub eax, ebx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x1c]
mov dword [esp], eax
call fcn.00599f2c
mov edx, dword [esp + 0x30]
mov dword [edx + 0x1c], eax
mov ecx, dword [esp + 0xb0]
mov dword [ecx + 0x30], eax
mov edi, dword [esp + 0x30]
cmp dword [edi + 8], 1
sbb eax, eax
not eax
and eax, 0x40
add eax, dword [edi + 0x40]
mov edx, dword [edi + 4]
cmp edx, 0x3f3f
je 0x5983c4
cmp edx, 0x3f47
je 0x597a34
cmp edx, 0x3f42
je 0x597a34
xor edx, edx
add eax, edx
mov edx, dword [esp + 0xb0]
mov dword [edx + 0x2c], eax
test esi, esi
jne 0x597a49
test ebx, ebx
jne 0x597a49
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x597058
mov dword [esp + 0x48], 0xfffffffb
mov eax, dword [esp + 0x48]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
mov edx, 0x100
add eax, edx
mov edx, dword [esp + 0xb0]
mov dword [edx + 0x2c], eax
test esi, esi
je 0x597a0a
cmp dword [esp + 0xb4], 4
je 0x597a0e
mov eax, dword [esp + 0x48]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
nop
test ah, 2
je 0x597acc
cmp dword [esp + 0x34], 0xf
ja 0x597aae
test ebx, ebx
je 0x598388
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x597a94
test ebx, ebx
je 0x5983cc
dec ebx
movzx edx, byte [ebp]
shl edx, cl
add esi, edx
inc ebp
add ecx, 8
cmp ecx, 0xf
jbe 0x597a8c
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x30]
test byte [edi + 0xc], 4
jne 0x5985a0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 0x24]
test edx, edx
je 0x597ae7
sar eax, 9
and eax, 1
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00599f2c
mov edi, dword [esp + 0x30]
mov dword [edi + 0x1c], eax
mov edx, dword [esp + 0xb0]
mov dword [edx + 0x30], eax
mov dword [edi + 4], 0x3f3f
mov eax, 0x3f3f
jmp 0x59710f
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x14]
test ah, 0x10
je 0x597c62
test ebx, ebx
je 0x598388
xor edx, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x30]
nop
mov esi, dword [esp + 0x3c]
mov cl, byte [esi + edx]
movzx esi, cl
inc edx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x597b78
mov edi, dword [eax + 0x24]
test edi, edi
je 0x597b78
mov ebx, dword [ebp + 0x44]
cmp ebx, dword [eax + 0x28]
jae 0x597b78
mov byte [edi + ebx], cl
inc ebx
mov dword [ebp + 0x44], ebx
test esi, esi
je 0x597b82
cmp edx, dword [esp + 0x40]
jne 0x597b50
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
test byte [edi + 0x15], 2
je 0x597b9e
test byte [edi + 0xc], 4
jne 0x598747
sub ebx, edx
add ebp, edx
test esi, esi
jne 0x598388
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
mov esi, dword [esp + 0x30]
mov dword [esi + 4], 0x3f3c
jmp 0x597a6c
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x14]
test ah, 8
je 0x598444
test ebx, ebx
je 0x598388
xor edx, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x30]
nop
mov esi, dword [esp + 0x3c]
mov cl, byte [esi + edx]
movzx esi, cl
inc edx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x597c14
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x597c14
mov ebx, dword [ebp + 0x44]
cmp ebx, dword [eax + 0x20]
jae 0x597c14
mov byte [edi + ebx], cl
inc ebx
mov dword [ebp + 0x44], ebx
test esi, esi
je 0x597c1e
cmp edx, dword [esp + 0x40]
jne 0x597bec
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
test byte [edi + 0x15], 2
jne 0x598570
sub ebx, edx
add ebp, edx
test esi, esi
jne 0x598388
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
mov esi, dword [esp + 0x30]
mov dword [esi + 0x44], 0
mov dword [esi + 4], 0x3f3b
test ah, 0x10
jne 0x597b38
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x597bb1
mov dword [edx + 0x24], 0
jmp 0x597bb1
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x14]
mov edx, eax
and edx, 0x400
test edx, edx
je 0x597d23
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x3c], ebx
cmp ebx, edx
ja 0x5985d8
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x597d14
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x597ceb
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x597ceb
mov eax, dword [ecx + 0x14]
sub eax, edx
mov ecx, dword [ecx + 0x18]
mov edx, dword [esp + 0x3c]
add edx, eax
cmp edx, ecx
jbe 0x598b30
sub ecx, eax
add eax, esi
mov edi, eax
mov esi, ebp
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x14]
test ah, 2
je 0x597cfe
mov eax, dword [esp + 0x30]
test byte [eax + 0xc], 4
jne 0x598d56
sub ebx, dword [esp + 0x3c]
add ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x44]
sub edx, dword [esp + 0x3c]
mov dword [edi + 0x44], edx
test edx, edx
jne 0x598388
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x44], 0
mov dword [ecx + 4], 0x3f3a
jmp 0x597bcb
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x14]
mov eax, edx
test dh, 4
je 0x59775f
cmp dword [esp + 0x34], 0xf
ja 0x598f29
test ebx, ebx
je 0x598388
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x597d74
test ebx, ebx
je 0x5983cc
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add esi, eax
inc ebp
add ecx, 8
cmp ecx, 0xf
jbe 0x597d6c
mov dword [esp + 0x38], esi
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x44], eax
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x597da1
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x14], ecx
test dh, 2
je 0x597db4
mov esi, dword [esp + 0x30]
test byte [esi + 0xc], 4
jne 0x598e86
mov eax, edx
and edx, 0x400
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov edi, dword [esp + 0x30]
jmp 0x59777b
cmp dword [esp + 0x34], 0xd
ja 0x597e16
test ebx, ebx
je 0x598388
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x597dfc
test ebx, ebx
je 0x598398
dec ebx
movzx eax, byte [ebp]
shl eax, cl
add edx, eax
inc ebp
add ecx, 8
cmp ecx, 0xd
jbe 0x597df4
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x38]
and edx, 0x1f
add edx, 0x101
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x64], edx
mov eax, dword [esp + 0x38]
shr eax, 5
and eax, 0x1f
inc eax
mov dword [ecx + 0x68], eax
mov ecx, dword [esp + 0x38]
shr ecx, 0xa
and ecx, 0xf
lea esi, [ecx + 4]
mov edi, dword [esp + 0x30]
mov dword [edi + 0x60], esi
shr dword [esp + 0x38], 0xe
sub dword [esp + 0x34], 0xe
cmp edx, 0x11e
ja 0x5989e8
cmp eax, 0x1e
ja 0x5989e8
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x6c], 0
mov dword [ecx + 4], 0x3f45
xor edx, edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x38]
jmp 0x5981e6
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 0x44]
test edx, edx
je 0x598460
mov eax, ebx
cmp ebx, edx
ja 0x598658
cmp eax, dword [esp + 0x44]
ja 0x59864c
test eax, eax
je 0x598388
mov edi, dword [esp + 0x58]
mov esi, ebp
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
invalid