Function at 0x4a6430
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
sub esp, 0x40
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
push edi
test ecx, ecx
je 0x4a7b75
cmp dword [ecx + 0x20], 0
je 0x4a7b75
cmp dword [ecx + 0x24], 0
je 0x4a7b75
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4a7b75
cmp dword [edi], ecx
jne 0x4a7b75
mov eax, dword [edi + 4]
cmp eax, 0x3f34
jl 0x4a7b75
cmp eax, 0x3f53
jg 0x4a7b75
cmp dword [ecx + 0xc], 0
je 0x4a7b75
cmp dword [ecx], 0
jne 0x4a64ac
cmp dword [ecx + 4], 0
jne 0x4a7b75
cmp eax, 0x3f3f
jne 0x4a64ba
mov dword [edi + 4], 0x3f40
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
xor eax, eax
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 4]
push ebp
mov ebp, dword [ecx + 4]
sub eax, 0x3f34
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x3c], ebp
push esi
mov esi, dword [edi + 0x40]
cmp eax, 0x1e
ja case.default.0x4a6508
lea ebx, [edi + 0x58]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x18]
jmp dword [eax*4 + 0x4a7b8c]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4a6522
mov dword [edi + 4], 0x3f40
jmp 0x4a6e84
cmp esi, 0x10
jae 0x4a6551
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x4a6527
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
test al, 2
je 0x4a65a8
cmp edx, 0x8b1f
jne 0x4a65a8
cmp dword [edi + 0x28], 0
jne 0x4a656a
mov dword [edi + 0x28], 0xf
push 0
push 0
push 0
call fcn.004a82b0
mov dword [edi + 0x1c], eax
lea eax, [esp + 0x54]
push 2
push eax
mov word [esp + 0x5c], 0x8b1f
push dword [edi + 0x1c]
call fcn.004a82b0
xor edx, edx
mov dword [edi + 0x1c], eax
add esp, 0x18
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [edi + 4], 0x3f35
jmp 0x4a6e80
mov eax, dword [edi + 0x24]
mov dword [edi + 0x14], 0
test eax, eax
je 0x4a65bd
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 0xc], 1
je 0x4a668c
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
mov ecx, 0x1f
div ecx
test edx, edx
mov edx, dword [esp + 0x10]
jne 0x4a6688
mov eax, edx
and al, 0xf
cmp al, 8
je 0x4a6608
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421978
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
shr edx, 4
sub esi, 4
mov ecx, edx
mov dword [esp + 0x10], edx
and ecx, 0xf
add ecx, 8
cmp dword [edi + 0x28], 0
jne 0x4a6623
mov dword [edi + 0x28], ecx
cmp ecx, 0xf
ja 0x4a6671
cmp ecx, dword [edi + 0x28]
ja 0x4a6671
push 0
mov eax, 1
shl eax, cl
push 0
push 0
mov dword [edi + 0x18], eax
call fcn.004a8030
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
shr edx, 8
not edx
mov dword [edi + 0x1c], eax
and edx, 2
or edx, 0x3f3d
mov dword [ecx + 0x30], eax
mov dword [edi + 4], edx
xor edx, edx
mov dword [esp + 0x10], edx
xor esi, esi
jmp 0x4a6e84
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421994
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421960
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
cmp esi, 0x10
jae 0x4a66cb
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x4a66a4
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x14], edx
cmp dl, 8
je 0x4a66e6
mov dword [ecx + 0x18], 0x421978
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
test edx, 0xe000
je 0x4a6701
mov dword [ecx + 0x18], 0x4219a8
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4a6712
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [edi + 0x14], 0x200
je 0x4a6741
test byte [edi + 0xc], 4
je 0x4a6741
mov byte [esp + 0x48], dl
lea eax, [esp + 0x48]
push 2
shr edx, 8
push eax
mov byte [esp + 0x51], dl
push dword [edi + 0x1c]
call fcn.004a82b0
add esp, 0xc
mov dword [edi + 0x1c], eax
xor edx, edx
mov dword [edi + 4], 0x3f36
mov dword [esp + 0x10], edx
xor esi, esi
jmp 0x4a6757
cmp esi, 0x20
jae 0x4a677a
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x4a6757
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a6784
mov dword [eax + 4], edx
test dword [edi + 0x14], 0x200
je 0x4a67c5
test byte [edi + 0xc], 4
je 0x4a67c5
mov eax, edx
mov byte [esp + 0x48], dl
shr eax, 8
mov byte [esp + 0x49], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x4a], al
lea eax, [esp + 0x48]
push 4
shr edx, 0x18
push eax
mov byte [esp + 0x53], dl
push dword [edi + 0x1c]
call fcn.004a82b0
add esp, 0xc
mov dword [edi + 0x1c], eax
xor edx, edx
mov dword [edi + 4], 0x3f37
mov dword [esp + 0x10], edx
xor esi, esi
jmp 0x4a67e0
cmp esi, 0x10
jae 0x4a6803
jmp 0x4a67e0
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x4a67e0
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4a681b
movzx eax, dl
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [edi + 0x24]
shr ecx, 8
mov dword [eax + 0xc], ecx
test dword [edi + 0x14], 0x200
je 0x4a684a
test byte [edi + 0xc], 4
je 0x4a684a
mov byte [esp + 0x48], dl
lea eax, [esp + 0x48]
push 2
shr edx, 8
push eax
mov byte [esp + 0x51], dl
push dword [edi + 0x1c]
call fcn.004a82b0
add esp, 0xc
mov dword [edi + 0x1c], eax
xor edx, edx
mov dword [edi + 4], 0x3f38
mov dword [esp + 0x10], edx
xor esi, esi
test dword [edi + 0x14], 0x400
je 0x4a68d0
cmp esi, 0x10
jae 0x4a688a
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x4a6867
mov eax, dword [edi + 0x24]
mov dword [edi + 0x44], edx
test eax, eax
je 0x4a6897
mov dword [eax + 0x14], edx
test dword [edi + 0x14], 0x200
je 0x4a68c6
test byte [edi + 0xc], 4
je 0x4a68c6
mov byte [esp + 0x48], dl
lea eax, [esp + 0x48]
push 2
shr edx, 8
push eax
mov byte [esp + 0x51], dl
push dword [edi + 0x1c]
call fcn.004a82b0
add esp, 0xc
mov dword [edi + 0x1c], eax
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ecx
jmp 0x4a68de
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a68de
mov dword [eax + 0x10], 0
mov dword [edi + 4], 0x3f39
test dword [edi + 0x14], 0x400
je 0x4a697c
mov ecx, dword [edi + 0x44]
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4a6972
mov edx, dword [edi + 0x24]
test edx, edx
je 0x4a6944
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a6944
mov eax, dword [edx + 0x14]
sub eax, dword [edi + 0x44]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x20], eax
add eax, ecx
cmp eax, edx
mov eax, dword [esp + 0x20]
jbe 0x4a692f
sub edx, eax
jmp 0x4a6931
mov edx, ecx
add eax, dword [esp + 0x1c]
push edx
push ebx
push eax
call fcn.005358e0
mov ecx, dword [esp + 0x40]
add esp, 0xc
test dword [edi + 0x14], 0x200
je 0x4a6963
test byte [edi + 0xc], 4
je 0x4a6963
push ecx
push ebx
push dword [edi + 0x1c]
call fcn.004a82b0
add esp, 0xc
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x34]
add ebx, eax
sub ebp, eax
mov dword [esp + 0x18], ebx
sub dword [edi + 0x44], eax
cmp dword [edi + 0x44], 0
jne 0x4a6a18
mov dword [edi + 0x44], 0
mov dword [edi + 4], 0x3f3a
test dword [edi + 0x14], 0x800
je 0x4a6aaf
test ebp, ebp
je 0x4a6a18
xor ecx, ecx
movzx eax, byte [ecx + ebx]
inc ecx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a69d1
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x4a69d1
mov edx, dword [edi + 0x44]
cmp edx, dword [eax + 0x20]
jae 0x4a69d1
mov eax, dword [eax + 0x1c]
mov ebx, dword [esp + 0x30]
mov byte [eax + edx], bl
inc dword [edi + 0x44]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a69dd
cmp ecx, ebp
jb 0x4a69a1
test dword [edi + 0x14], 0x200
mov dword [esp + 0x1c], ecx
je 0x4a6a08
test byte [edi + 0xc], 4
je 0x4a6a08
push ecx
push ebx
push dword [edi + 0x1c]
call fcn.004a82b0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x30]
add ebx, ecx
sub ebp, ecx
mov dword [esp + 0x18], ebx
test eax, eax
je 0x4a6abd
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], ebp
mov ebp, dword [esp + 0x38]
mov dword [ecx], eax
cmp dword [ebx + 0x2c], 0
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], esi
jne 0x4a6a76
cmp ebp, dword [ecx + 0x10]
je 0x4a7a89
mov eax, dword [ebx + 4]
cmp eax, 0x3f51
jge 0x4a7a89
cmp eax, 0x3f4e
jl 0x4a6a76
cmp edx, 4
je 0x4a7a89
mov eax, ebp
sub eax, dword [ecx + 0x10]
push eax
push dword [ecx + 0xc]
push ecx
call fcn.004a7f40
add esp, 0xc
test eax, eax
je 0x4a7a85
mov dword [ebx + 4], 0x3f52
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffc
pop edi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00535482
add esp, 0x40
ret
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a6abd
mov dword [eax + 0x1c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 4], 0x3f3b
test dword [edi + 0x14], 0x1000
je 0x4a6b5b
test ebp, ebp
je 0x4a6a18
xor ecx, ecx
movzx eax, byte [ecx + ebx]
inc ecx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a6b12
mov edx, dword [eax + 0x24]
test edx, edx
je 0x4a6b12
mov edx, dword [edi + 0x44]
cmp edx, dword [eax + 0x28]
jae 0x4a6b12
mov eax, dword [eax + 0x24]
mov ebx, dword [esp + 0x30]
mov byte [eax + edx], bl
inc dword [edi + 0x44]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a6b1e
cmp ecx, ebp
jb 0x4a6ae2
test dword [edi + 0x14], 0x200
mov dword [esp + 0x1c], ecx
je 0x4a6b49
test byte [edi + 0xc], 4
je 0x4a6b49
push ecx
push ebx
push dword [edi + 0x1c]
call fcn.004a82b0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x30]
add ebx, ecx
sub ebp, ecx
mov dword [esp + 0x18], ebx
test eax, eax
jne 0x4a6a18
jmp 0x4a6b69
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a6b69
mov dword [eax + 0x24], 0
mov edx, dword [esp + 0x10]
mov dword [edi + 4], 0x3f3c
test dword [edi + 0x14], 0x200
je 0x4a6bd2
cmp esi, 0x10
jae 0x4a6ba5
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x4a6b82
test byte [edi + 0xc], 4
je 0x4a6bca
movzx eax, word [edi + 0x1c]
cmp edx, eax
je 0x4a6bca
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x4219c4
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4a6bef
mov eax, dword [edi + 0x14]
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [edi + 0x24]
mov dword [eax + 0x30], 1
push 0
push 0
push 0
call fcn.004a82b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov dword [edi + 0x1c], eax
mov dword [ecx + 0x30], eax
mov dword [edi + 4], 0x3f3f
jmp 0x4a6e84
cmp esi, 0x20
jae 0x4a6c43
lea esp, [esp]
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x4a6c20
mov ecx, edx
mov eax, edx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
shr edx, 0x18
mov ecx, dword [esp + 0x14]
add eax, edx
xor edx, edx
mov dword [edi + 0x1c], eax
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [ecx + 0x30], eax
mov dword [edi + 4], 0x3f3e
cmp dword [edi + 0x10], 0
je 0x4a7a10
push 0
push 0
push 0
call fcn.004a8030
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov dword [edi + 0x1c], eax
mov dword [ecx + 0x30], eax
mov dword [edi + 4], 0x3f3f
mov eax, dword [esp + 0x58]
cmp eax, 5
je 0x4a7a7a
cmp eax, 6
je 0x4a7a7a
cmp dword [edi + 8], 0
je 0x4a6ce1
mov ecx, esi
mov dword [edi + 4], 0x3f4e
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [esp + 0x10], edx
jmp 0x4a6e80
cmp esi, 3
jae 0x4a6d09
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 3
jb 0x4a6ce6
mov eax, edx
shr edx, 1
and eax, 1
mov dword [edi + 8], eax
mov eax, edx
and eax, 3
cmp eax, 3
ja case.default.0x4a6d1d
jmp dword [eax*4 + 0x4a7c08]
mov dword [edi + 4], 0x3f41
mov ecx, dword [esp + 0x14]
shr edx, 2
sub esi, 3
mov dword [esp + 0x10], edx
jmp 0x4a6e84
cmp dword [esp + 0x58], 6
mov dword [edi + 0x50], 0x4210b8
mov dword [edi + 0x58], 9
mov dword [edi + 0x54], 0x4218b8
mov dword [edi + 0x5c], 5
mov dword [edi + 4], 0x3f47
jne case.default.0x4a6d1d
shr edx, 2
sub esi, 3
mov dword [esp + 0x10], edx
jmp 0x4a6a18
mov ecx, dword [esp + 0x14]
shr edx, 2
sub esi, 3
mov dword [edi + 4], 0x3f44
mov dword [esp + 0x10], edx
jmp 0x4a6e84
mov ecx, dword [esp + 0x14]
shr edx, 2
sub esi, 3
mov dword [esp + 0x10], edx
mov dword [ecx + 0x18], 0x4219d8
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [esp + 0x10], edx
cmp esi, 0x20
jae 0x4a6de7
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x4a6dc4
mov eax, edx
mov ecx, edx
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x4a6e0e
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x4219ec
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
xor edx, edx
mov dword [edi + 0x44], ecx
xor esi, esi
mov dword [esp + 0x10], edx
cmp dword [esp + 0x58], 6
mov dword [edi + 4], 0x3f42
je 0x4a7a73
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], 0x3f43
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4a6ead
cmp eax, ebp
cmova eax, ebp
cmp eax, dword [esp + 0x28]
cmova eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a6a18
push eax
push ebx
push dword [esp + 0x34]
call fcn.005358e0
mov eax, dword [esp + 0x28]
add esp, 0xc
sub dword [esp + 0x28], eax
add ebx, eax
add dword [esp + 0x2c], eax
sub ebp, eax
sub dword [edi + 0x44], eax
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 4]
sub eax, 0x3f34
cmp eax, 0x1e
jbe switch.0x004a6508
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00535482
add esp, 0x40
ret
mov dword [edi + 4], 0x3f3f
jmp 0x4a6e84
cmp esi, 0xe
jae 0x4a6ee7
jmp 0x4a6ec0
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0xe
jb 0x4a6ec0
mov ecx, dword [esp + 0x14]
mov eax, edx
sub esi, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [edi + 0x64], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [edi + 0x68], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [esp + 0x10], edx
cmp dword [edi + 0x64], 0x11e
mov dword [edi + 0x60], eax
ja 0x4a7012
cmp dword [edi + 0x68], 0x1e
ja 0x4a7012
mov dword [edi + 0x6c], 0
mov dword [edi + 4], 0x3f45
mov eax, dword [edi + 0x6c]
cmp eax, dword [edi + 0x60]
jae 0x4a6f9d
cmp esi, 3
jae 0x4a6f73
lea ebx, [ebx]
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 3
jb 0x4a6f50
mov eax, dword [edi + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [esp + 0x10], edx
movzx eax, word [eax*2 + 0x421938]
mov word [edi + eax*2 + 0x74], cx
inc dword [edi + 0x6c]
mov eax, dword [edi + 0x6c]
cmp eax, dword [edi + 0x60]
jb 0x4a6f45
cmp dword [edi + 0x6c], 0x13
jae 0x4a6fbe
mov eax, dword [edi + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x421938]
mov word [edi + eax*2 + 0x74], cx
inc dword [edi + 0x6c]
cmp dword [edi + 0x6c], 0x13
jb 0x4a6fa3
lea eax, [edi + 0x534]
mov dword [edi + 0x58], 7
lea ecx, [edi + 0x70]
mov dword [edi + 0x50], eax
mov dword [ecx], eax
lea edx, [edi + 0x58]
lea eax, [edi + 0x2f4]
push eax
push edx
push ecx
push 0x13
lea eax, [edi + 0x74]
push eax
push 0
call fcn.004a9d00
add esp, 0x18
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4a7025
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], 0x421a30
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov dword [ecx + 0x18], 0x421a0c
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov dword [edi + 0x6c], 0
mov dword [edi + 4], 0x3f46
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
mov dword [esp + 0x30], ecx
cmp ecx, eax
jae 0x4a727f
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov eax, dword [esp + 0x44]
mov edx, 1
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x20], eax
cmp ecx, esi
jbe 0x4a70c8
lea ebx, [ebx]
test ebp, ebp
je 0x4a6a1c
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov edx, 1
add edi, eax
inc ebx
mov eax, dword [esp + 0x44]
add esi, 8
dec ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x20], eax
cmp ecx, esi
ja 0x4a7080
mov edx, eax
shr edx, 0x10
cmp dx, 0x10
jae 0x4a70f6
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x30]
sub esi, ecx
shr edi, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov word [ecx + eax*2 + 0x74], dx
inc dword [ecx + 0x6c]
jmp 0x4a7266
jne 0x4a716f
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, 2
mov dword [esp + 0x1c], ecx
cmp esi, ecx
jae 0x4a7134
jmp 0x4a7110
test ebp, ebp
je 0x4a6a1c
movzx edx, byte [ebx]
mov ecx, esi
shl edx, cl
inc ebx
add edi, edx
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edi
dec ebp
cmp esi, dword [esp + 0x1c]
jb 0x4a7110
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
movzx ecx, ah
mov eax, dword [esp + 0x30]
sub esi, ecx
shr edx, cl
mov dword [esp + 0x10], edx
test eax, eax
je 0x4a72b1
movzx eax, word [edi + eax*2 + 0x72]
mov ecx, edx
and ecx, 3
shr edx, 2
add ecx, 3
mov dword [esp + 0x20], eax
sub esi, 2
jmp 0x4a722c
cmp word [esp + 0x22], 0x11
mov edx, dword [esp + 0x10]
movzx eax, ah
jne 0x4a71d0
lea edi, [eax + 3]
mov dword [esp + 0x1c], eax
cmp esi, edi
jae 0x4a71b6
lea esp, [esp]
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, edi
jb 0x4a7190
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov eax, 0xfffffffd
shr edx, cl
mov ecx, edx
shr edx, 3
and ecx, 7
add ecx, 3
sub eax, dword [esp + 0x1c]
jmp 0x4a721e
lea edi, [eax + 7]
mov dword [esp + 0x1c], eax
cmp esi, edi
jae 0x4a7206
jmp 0x4a71e0
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, edi
jb 0x4a71e0
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov eax, 0xfffffff9
shr edx, cl
mov ecx, edx
shr edx, 7
and ecx, 0x7f
add ecx, 0xb
sub eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
add esi, eax
mov dword [esp + 0x20], 0
mov eax, dword [edi + 0x68]
add eax, dword [edi + 0x64]
mov dword [esp + 0x34], ecx
add ecx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
cmp ecx, eax
ja 0x4a72b1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4a725e
mov edx, dword [esp + 0x20]
mov edi, edi
mov eax, dword [edi + 0x6c]
mov word [edi + eax*2 + 0x74], dx
inc dword [edi + 0x6c]
dec ecx
jne 0x4a7250
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov eax, dword [ecx + 0x68]
mov edx, dword [ecx + 0x6c]
add eax, dword [ecx + 0x64]
mov dword [esp + 0x30], edx
cmp edx, eax
jb 0x4a7050
mov edi, dword [esp + 0x24]
cmp dword [edi + 4], 0x3f51
je 0x4a6e7c
cmp word [edi + 0x274], 0
jne 0x4a72c8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], 0x421a68
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421a4c
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
lea eax, [edi + 0x534]
mov dword [edi + 0x58], 9
lea ecx, [edi + 0x70]
mov dword [edi + 0x50], eax
mov dword [ecx], eax
lea edx, [edi + 0x58]
lea eax, [edi + 0x2f4]
push eax
push edx
push ecx
push dword [edi + 0x64]
lea eax, [edi + 0x74]
push eax
push 1
call fcn.004a9d00
add esp, 0x18
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4a731d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], 0x421a90
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov eax, dword [edi + 0x70]
lea ecx, [edi + 0x70]
mov dword [edi + 0x54], eax
lea edx, [edi + 0x5c]
lea eax, [edi + 0x2f4]
mov dword [edx], 6
push eax
mov eax, dword [edi + 0x64]
push edx
push ecx
push dword [edi + 0x68]
add eax, 0x3a
lea eax, [edi + eax*2]
push eax
push 2
call fcn.004a9d00
add esp, 0x18
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4a7372
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], 0x421aac
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov edx, dword [esp + 0x58]
mov dword [edi + 4], 0x3f47
cmp edx, 6
je 0x4a7a6a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], 0x3f48
cmp ebp, 6
jb 0x4a740b
cmp dword [esp + 0x28], 0x102
jb 0x4a740b
mov eax, dword [esp + 0x2c]
push dword [esp + 0x38]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x10], eax
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
push ecx
mov dword [edi + 0x3c], edx
mov dword [edi + 0x40], esi
call fcn.004aa160
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp dword [edi + 4], 0x3f3f
mov edx, dword [edi + 0x3c]
mov esi, dword [edi + 0x40]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
jne 0x4a6e84
mov dword [edi + 0x1bc8], 0xffffffff
jmp 0x4a6e84
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x1c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
dec eax
and eax, edx
mov dword [edi + 0x1bc8], 0
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x4a7483
jmp 0x4a7440
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x58]
add edx, eax
mov eax, dword [edi + 0x50]
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov edx, 1
mov dword [esp + 0x18], ebx
shl edx, cl
dec edx
and edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x10]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x4a7440
test al, al
je 0x4a7550
test al, 0xf0
jne 0x4a7550
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [esp + 0x34], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [esp + 0x20], edx
and ebx, dword [esp + 0x10]
shr ebx, cl
mov ecx, dword [esp + 0x1c]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x34]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x4a7537
jmp 0x4a74e0
test ebp, ebp
je 0x4a6a18
mov ebx, dword [esp + 0x18]
mov ecx, esi
mov edi, 1
add esi, 8
dec ebp
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [esp + 0x10], eax
movzx eax, word [esp + 0x22]
mov dword [esp + 0x18], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [esp + 0x10]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x4a74e0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
movzx ecx, dh
mov edx, dword [esp + 0x10]
shr edx, cl
sub esi, ecx
mov dword [edi + 0x1bc8], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc8], ecx
sub esi, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [edi + 0x44], ecx
test al, al
jne 0x4a757e
mov dword [edi + 4], 0x3f4d
jmp 0x4a6e80
test al, 0x20
je 0x4a7598
mov dword [edi + 0x1bc8], 0xffffffff
mov dword [edi + 4], 0x3f3f
jmp 0x4a6e80
test al, 0x40
je 0x4a75b3
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421ac4
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
movzx eax, al
and eax, 0xf
mov dword [edi + 4], 0x3f49
mov dword [edi + 0x4c], eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x4a7610
cmp esi, ecx
jae 0x4a75f5
mov edi, edi
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x4c]
add edx, eax
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov dword [esp + 0x18], ebx
cmp esi, ecx
jb 0x4a75d0
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [edi + 0x44], eax
add dword [edi + 0x1bc8], ecx
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x44]
mov dword [edi + 0x1bcc], eax
mov dword [edi + 4], 0x3f4a
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x54]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x4a7689
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x5c]
add edx, eax
mov eax, dword [edi + 0x54]
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov edx, 1
mov dword [esp + 0x18], ebx
shl edx, cl
dec edx
and edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x10]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x4a7646
test al, 0xf0
jne 0x4a774c
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [esp + 0x34], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [esp + 0x20], edx
and ebx, dword [esp + 0x10]
shr ebx, cl
mov ecx, dword [esp + 0x1c]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x34]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x4a7737
lea esp, [esp]
test ebp, ebp
je 0x4a6a18
mov ebx, dword [esp + 0x18]
mov ecx, esi
mov edi, 1
add esi, 8
dec ebp
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [esp + 0x10], eax
movzx eax, word [esp + 0x22]
mov dword [esp + 0x18], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [esp + 0x10]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x4a76e0
mov edi, dword [esp + 0x24]
movzx ecx, dh
mov edx, dword [esp + 0x10]
sub esi, ecx
shr edx, cl
add dword [edi + 0x1bc8], ecx
mov ebx, dword [esp + 0x18]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc8], ecx
sub esi, ecx
shr edx, cl
mov dword [esp + 0x10], edx
test al, 0x40
je 0x4a7781
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421ae0
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov ecx, eax
mov dword [edi + 4], 0x3f4b
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x4a77e4
cmp esi, ecx
jae 0x4a77c9
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x4c]
add edx, eax
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov dword [esp + 0x18], ebx
cmp esi, ecx
jb 0x4a77a4
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [edi + 0x48], eax
add dword [edi + 0x1bc8], ecx
mov dword [esp + 0x10], edx
mov dword [edi + 4], 0x3f4c
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4a6a18
mov eax, dword [esp + 0x38]
sub eax, ecx
mov ecx, dword [edi + 0x48]
cmp ecx, eax
jbe 0x4a7853
sub ecx, eax
cmp ecx, dword [edi + 0x30]
jbe 0x4a782b
cmp dword [edi + 0x1bc4], 0
je 0x4a782b
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421af8
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov eax, dword [edi + 0x34]
cmp ecx, eax
jbe 0x4a783e
sub ecx, eax
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x2c]
sub eax, ecx
jmp 0x4a7846
mov eax, dword [edi + 0x38]
sub eax, ecx
add eax, dword [edi + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x44]
cmp ecx, eax
jbe 0x4a7862
jmp 0x4a7860
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x44]
mov ecx, eax
mov ebx, dword [esp + 0x28]
cmp ecx, ebx
cmova ecx, ebx
sub ebx, ecx
sub eax, ecx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x44], eax
mov edi, dword [esp + 0x2c]
sub ebx, edi
mov al, byte [ebx + edi]
mov byte [edi], al
inc edi
dec ecx
jne 0x4a7880
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x44], ecx
jne 0x4a6e80
mov dword [edi + 4], 0x3f48
jmp 0x4a6e80
cmp dword [esp + 0x28], 0
je 0x4a6a18
mov ebx, dword [esp + 0x2c]
mov al, byte [edi + 0x44]
inc dword [esp + 0x2c]
dec dword [esp + 0x28]
mov byte [ebx], al
mov ebx, dword [esp + 0x18]
mov dword [edi + 4], 0x3f48
jmp 0x4a6e84
cmp dword [edi + 0xc], 0
je 0x4a79b5
cmp esi, 0x20
jae 0x4a790c
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x4a78e5
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x28]
add dword [ecx + 0x14], eax
add dword [edi + 0x20], eax
test byte [edi + 0xc], 4
mov dword [esp + 0x38], eax
je 0x4a7958
test eax, eax
je 0x4a7958
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x3c]
cmp dword [edi + 0x14], 0
push eax
push dword [edi + 0x1c]
je 0x4a7942
call fcn.004a82b0
jmp 0x4a7947
call fcn.004a8030
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov dword [edi + 0x1c], eax
mov dword [ecx + 0x30], eax
test byte [edi + 0xc], 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
je 0x4a79ad
cmp dword [edi + 0x14], 0
mov ecx, edx
jne 0x4a7991
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp ecx, dword [edi + 0x1c]
je 0x4a79ad
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421b18
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [edi + 4], 0x3f4f
cmp dword [edi + 0xc], 0
je 0x4a7a49
cmp dword [edi + 0x14], 0
je 0x4a7a49
cmp esi, 0x20
jae 0x4a79f4
test ebp, ebp
je 0x4a6a18
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x4a79d1
cmp edx, dword [edi + 0x20]
je 0x4a7a41
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], 0x421b30
mov dword [edi + 4], 0x3f51
jmp 0x4a6e84
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x10], eax
mov eax, 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [edi + 0x40], esi
pop esi
pop ebp
pop ebx
mov dword [edi + 0x3c], edx
pop edi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00535482
add esp, 0x40
ret
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [edi + 4], 0x3f50
mov dword [esp + 0x3c], 1
jmp 0x4a6a18
mov dword [esp + 0x3c], 0xfffffffd
jmp 0x4a6a18
mov edi, dword [esp + 0x10]
jmp 0x4a6a20
xor edi, edi
jmp 0x4a6a1c
mov edi, dword [esp + 0x10]
mov edx, eax
jmp 0x4a6a20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
sub eax, dword [ecx + 4]
sub ebp, dword [ecx + 0x10]
add dword [ecx + 8], eax
add dword [ecx + 0x14], ebp
add dword [ebx + 0x20], ebp
test byte [ebx + 0xc], 4
mov dword [esp + 0x40], eax
je 0x4a7ae2
test ebp, ebp
je 0x4a7ae2
mov eax, dword [ecx + 0xc]
push ebp
sub eax, ebp
cmp dword [ebx + 0x14], 0
push eax
push dword [ebx + 0x1c]
je 0x4a7ace
call fcn.004a82b0
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [edi + 0x30], eax
jmp 0x4a7ae6
call fcn.004a8030
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [edi + 0x30], eax
jmp 0x4a7ae6
mov edi, dword [esp + 0x14]
mov edx, dword [ebx + 4]
cmp edx, 0x3f47
je 0x4a7afd
cmp edx, 0x3f42
je 0x4a7afd
xor esi, esi
jmp 0x4a7b02
mov esi, 0x100
mov ecx, dword [ebx + 8]
neg ecx
mov dword [esp + 0x1c], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp edx, 0x3f3f
cmove eax, dword [esp + 0x1c]
add ecx, eax
add ecx, dword [ebx + 0x40]
add ecx, esi
cmp dword [esp + 0x40], 0
mov dword [edi + 0x2c], ecx
jne 0x4a7b36
test ebp, ebp
je 0x4a7b3d
cmp dword [esp + 0x58], 4
jne 0x4a7b5e
mov eax, dword [esp + 0x3c]
mov ecx, 0xfffffffb
pop esi
pop ebp
test eax, eax
pop ebx
cmove eax, ecx
pop edi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00535482
add esp, 0x40
ret
mov eax, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00535482
add esp, 0x40
ret
mov ecx, dword [esp + 0x40]
mov eax, 0xfffffffe
pop edi
xor ecx, esp
call fcn.00535482
add esp, 0x40
ret