Function at 0x4a0ef0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x4c]
test edx, edx
jne 0x4a0f0c
mov edx, dword [edi + 0x3c]
mov esi, dword [edi + 0x40]
test esi, esi
je 0x4a0f19
neg esi
add esi, edx
jmp 0x4a0f1e
mov esi, edx
sub esi, dword [edi + 0x38]
lea ecx, [esi + 4]
cmp ecx, dword [edi + 0xdc]
jbe 0x4a0f57
movsx ebx, byte [edi + 0x144]
cmp ebx, 1
je 0x4a0f5e
push 0x200
mov dword [ebp - 0x1c], edx
push edi
mov dword [ebp - 0x18], ecx
call fcn.0049ec90
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jne 0x4a2037
movsx ebx, byte [edi + 0x144]
dec ebx
cmp ebx, 7
ja case.0x4a0f6f.3
mov ebx, dword [ebx*4 + 0x4fcc08]
jmp ebx
movsx edx, byte [edi + 0x146]
cmp edx, 1
je case.0x4a0f6f.5
movzx edx, byte [edi + 0x15d]
test dl, 0x40
jne case.0x4a0f6f.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a0ff1
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x4a0ff1
mov edx, dword [edi + 0x128]
cmp edx, 1
je case.0x4a0f6f.5
mov edx, dword [0x5212e8]
test edx, edx
je 0x4a0ff1
movzx edx, byte [edi + 0x160]
test edx, 0x80
jne 0x4a0fd0
mov edx, dword [edi + 0x130]
jmp 0x4a0fdf
mov edx, dword [edi + 0x130]
cmp edx, 0xfffffffa
je case.0x4a0f6f.5
cmp edx, 1
je case.0x4a0f6f.5
cmp edx, 2
je case.0x4a0f6f.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x4a20dd
mov byte [edx + esi], 0xd
mov edx, dword [edi + 0x40]
mov byte [edx + esi + 1], 0xa
add esi, 2
jmp case.0x4a0f6f.5
movsx edx, byte [edi + 0x146]
cmp edx, 1
je case.0x4a0f6f.5
movzx edx, byte [edi + 0x15d]
test dl, 0x40
jne case.0x4a0f6f.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1090
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x4a1090
mov edx, dword [edi + 0x128]
cmp edx, 1
je case.0x4a0f6f.5
mov edx, dword [0x5212e8]
test edx, edx
je 0x4a1090
movzx edx, byte [edi + 0x160]
test edx, 0x80
jne 0x4a106f
mov edx, dword [edi + 0x130]
jmp 0x4a107e
mov edx, dword [edi + 0x130]
cmp edx, 0xfffffffa
je case.0x4a0f6f.5
cmp edx, 1
je case.0x4a0f6f.5
cmp edx, 2
je case.0x4a0f6f.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x4a218b
mov byte [edx + esi], 0xd
inc esi
jmp case.0x4a0f6f.5
movsx edx, byte [edi + 0x146]
cmp edx, 1
je case.0x4a0f6f.5
movzx edx, byte [edi + 0x15d]
test dl, 0x40
jne case.0x4a0f6f.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1125
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x4a1125
mov edx, dword [edi + 0x128]
cmp edx, 1
je case.0x4a0f6f.5
mov edx, dword [0x5212e8]
test edx, edx
je 0x4a1125
movzx edx, byte [edi + 0x160]
test edx, 0x80
jne 0x4a1104
mov edx, dword [edi + 0x130]
jmp 0x4a1113
mov edx, dword [edi + 0x130]
cmp edx, 0xfffffffa
je case.0x4a0f6f.5
cmp edx, 1
je case.0x4a0f6f.5
cmp edx, 2
je case.0x4a0f6f.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x4a20f4
mov byte [edx + esi], 0xa
inc esi
jmp case.0x4a0f6f.5
mov ebx, dword [edi + 0x40]
add esi, 0xfffffffc
mov dword [ebp - 0x10], esi
mov edx, esi
and edx, 0xff
test ebx, ebx
je 0x4a2101
movzx eax, byte [edi + 0x15d]
test al, 0x20
je 0x4a1194
mov eax, esi
shr eax, 0x18
mov dword [ebp - 0x18], eax
mov byte [ebx], al
mov ebx, dword [edi + 0x40]
mov eax, esi
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x1c], eax
mov byte [ebx + 1], al
mov ebx, dword [edi + 0x40]
shr esi, 8
mov eax, esi
and eax, 0xff
mov dword [ebp - 0x14], eax
mov byte [ebx + 2], al
mov esi, dword [edi + 0x40]
mov byte [esi + 3], dl
jmp 0x4a11c1
movzx edx, byte [ebp - 0x10]
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x14], eax
mov byte [ebx], dl
mov esi, dword [edi + 0x40]
movzx ebx, byte [ebp - 0xe]
mov dword [ebp - 0x1c], ebx
mov byte [esi + 1], al
mov eax, dword [edi + 0x40]
mov byte [eax + 2], bl
movzx eax, byte [ebp - 0xd]
mov ebx, dword [edi + 0x40]
mov dword [ebp - 0x18], eax
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x15d]
test al, 0x20
je 0x4a11ee
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x3c]
mov byte [esi], al
mov eax, dword [edi + 0x3c]
mov byte [eax + 1], bl
mov eax, dword [ebp - 0x14]
mov ebx, dword [edi + 0x3c]
mov byte [ebx + 2], al
mov esi, dword [edi + 0x3c]
mov byte [esi + 3], dl
jmp 0x4a120e
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x3c]
mov byte [esi], dl
mov edx, dword [edi + 0x3c]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x18]
mov esi, dword [edi + 0x3c]
mov byte [esi + 2], bl
mov edx, dword [edi + 0x3c]
mov byte [edx + 3], al
mov esi, ecx
jmp case.0x4a0f6f.5
mov ecx, dword [edi + 0xe8]
cmp esi, ecx
jae 0x4a1233
sub ecx, esi
push ecx
push 0x20
push edx
call fcn.004e2770
add esp, 0xc
mov esi, dword [edi + 0xe8]
movzx edx, byte [edi + 0x158]
test dl, 4
je case.0x4a0f6f.5
movzx edx, byte [edi + 0x15a]
test dl, 0x40
je case.0x4a0f6f.5
movzx edx, byte [edi + 0x15b]
test dl, 8
je case.0x4a0f6f.5
movsx edx, byte [edi + 0x146]
cmp edx, 1
je case.0x4a0f6f.5
movzx edx, byte [edi + 0x15d]
test dl, 0x40
jne case.0x4a0f6f.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a12d3
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x4a12d3
mov edx, dword [edi + 0x128]
cmp edx, 1
je case.0x4a0f6f.5
mov edx, dword [0x5212e8]
test edx, edx
je 0x4a12d3
movzx edx, byte [edi + 0x160]
test edx, 0x80
jne 0x4a12be
mov edx, dword [edi + 0x130]
jmp 0x4a12c9
mov edx, dword [edi + 0x130]
cmp edx, 0xfffffffa
je case.0x4a0f6f.5
cmp edx, 1
je case.0x4a0f6f.5
cmp edx, 2
je case.0x4a0f6f.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x4a2176
mov byte [edx + esi - 2], 0xd
mov edx, dword [edi + 0x40]
mov byte [edx + esi - 1], 0xa
jmp case.0x4a0f6f.5
push 0x37e
push str.for_put.c
push 2
push 8
call fcn.00492dd0
add esp, 0x10
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x4a130e
mov ebx, ecx
jmp 0x4a1311
mov ebx, dword [edi + 0x38]
movsx edx, byte [edi + 0x146]
cmp edx, 2
jne 0x4a1536
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a13af
movzx ecx, byte [edx + 0x1c]
test ecx, ecx
jne 0x4a133c
movzx ecx, byte [edx + 0x1d]
test ecx, ecx
je 0x4a13a8
movzx ecx, byte [edx + 0x20]
test ecx, ecx
je 0x4a1385
mov ecx, dword [edi + 0x128]
cmp ecx, 1
je 0x4a13a8
mov ecx, dword [0x5212e8]
test ecx, ecx
je 0x4a1385
movzx ecx, byte [edi + 0x160]
test ecx, 0x80
jne 0x4a1370
mov ecx, dword [edi + 0x130]
jmp 0x4a137b
mov ecx, dword [edi + 0x130]
cmp ecx, 0xfffffffa
je 0x4a13a8
cmp ecx, 1
je 0x4a13a8
cmp ecx, 2
je 0x4a13a8
mov byte [ebp - 0x18], 0xa
lea edx, [ebp - 0x18]
mov eax, edi
mov ecx, 1
call fcn.004a21fc
cmp eax, 0xffffffff
je 0x4a2198
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a13af
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x7c]
movzx ecx, byte [edi + 0x158]
test cl, 4
je 0x4a13d7
movzx ecx, byte [edi + 0x15a]
test cl, 0x40
je 0x4a13d7
movzx ecx, byte [edi + 0x15b]
test cl, 8
jne 0x4a1476
movsx ecx, byte [edi + 0x144]
cmp ecx, 6
je 0x4a1476
cmp ecx, 8
je 0x4a1476
movzx eax, byte [edi + 0x15d]
mov dword [ebp - 0x1c], eax
test al, 0x40
jne 0x4a146e
test edx, edx
je 0x4a1449
movzx ecx, byte [edx + 0x1e]
test ecx, ecx
je 0x4a1449
mov ecx, dword [edi + 0x128]
cmp ecx, 1
je 0x4a1486
mov eax, dword [0x5212e8]
test eax, eax
je 0x4a1449
movzx eax, byte [edi + 0x160]
test eax, 0x80
jne 0x4a1434
mov eax, dword [edi + 0x130]
jmp 0x4a143f
mov eax, dword [edi + 0x130]
cmp eax, 0xfffffffa
je 0x4a1486
cmp eax, 1
je 0x4a1486
cmp eax, 2
je 0x4a1486
mov edx, dword [edi + 0x40]
test edx, edx
je 0x4a21b6
mov byte [edx + esi], 0xa
mov edx, dword [edi + 0x7c]
mov ecx, dword [edi + 0x128]
movzx eax, byte [edi + 0x15d]
mov dword [ebp - 0x1c], eax
inc esi
jmp 0x4a1486
mov ecx, dword [edi + 0x128]
jmp 0x4a1486
mov ecx, dword [edi + 0x128]
movzx eax, byte [edi + 0x15d]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
and eax, 0xffffffbf
mov byte [edi + 0x15d], al
test edx, edx
je 0x4a14e2
movzx eax, byte [edx + 0x1e]
test eax, eax
je 0x4a14e2
cmp ecx, 1
je 0x4a14d9
mov ecx, dword [0x5212e8]
test ecx, ecx
je 0x4a14e7
movzx ecx, byte [edi + 0x160]
test ecx, 0x80
je 0x4a14c9
mov ecx, dword [edi + 0x130]
cmp ecx, 0xfffffffa
je 0x4a14d9
jmp 0x4a14cf
mov ecx, dword [edi + 0x130]
cmp ecx, 2
je 0x4a14d9
cmp ecx, 1
jne 0x4a14e7
mov byte [edx + 0x20], 1
jmp 0x4a1fc4
cmp ecx, 1
je 0x4a1525
mov ecx, dword [0x5212e8]
test ecx, ecx
je 0x4a1fc4
movzx ecx, byte [edi + 0x160]
test ecx, 0x80
je 0x4a1511
mov ecx, dword [edi + 0x130]
cmp ecx, 0xfffffffa
je 0x4a1525
jmp 0x4a1517
mov ecx, dword [edi + 0x130]
cmp ecx, 2
je 0x4a1525
cmp ecx, 1
jne 0x4a1fc4
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
cmp edx, 1
jne 0x4a1f25
lea edx, [esi + 1]
cmp esi, 5
je 0x4a1549
mov edx, esi
test ecx, ecx
je 0x4a1552
lea ebx, [ecx + 4]
jmp 0x4a1558
mov ebx, dword [edi + 0x38]
add ebx, 4
lea esi, [edx - 4]
test ecx, ecx
je 0x4a21c2
movsx ecx, byte [ecx + 5]
cmp ecx, 0x31
ja case.0x4a1577.1
mov ecx, dword [ecx*4 + 0x4fcb40]
jmp ecx
movzx eax, byte [edi + 0x158]
test al, 2
je 0x4a1736
mov ecx, dword [edi + 0x128]
cmp ecx, 1
je 0x4a15d1
mov ecx, dword [0x5212e8]
test ecx, ecx
je 0x4a1736
movzx ecx, byte [edi + 0x160]
test ecx, 0x80
je 0x4a15bd
mov ecx, dword [edi + 0x130]
cmp ecx, 0xfffffffa
je 0x4a15d1
jmp 0x4a15c3
mov ecx, dword [edi + 0x130]
cmp ecx, 2
je 0x4a15d1
cmp ecx, 1
jne 0x4a1736
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
inc ebx
test ecx, ecx
je 0x4a16dc
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x4a1680
and eax, 4
shr eax, 2
test eax, eax
je 0x4a1606
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + 0x20]
test esi, esi
je 0x4a1606
lea esi, [edx - 5]
jmp 0x4a1657
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + 0x1c]
test esi, esi
jne 0x4a1619
movzx esi, byte [ecx + 0x1d]
test esi, esi
je 0x4a1653
test eax, eax
je 0x4a1641
add ebx, 0xfffffffc
mov byte [ebx], 0xa
mov eax, 0xd
mov byte [ebx + 2], al
mov byte [ebx + 1], 0xc
mov byte [ebx + 4], al
lea esi, [edx - 1]
mov byte [ebx + 3], 0x20
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], edx
jmp 0x4a164d
mov byte [ebx], 0xc
lea esi, [edx - 5]
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x4a1657
jmp 0x4a1674
inc ebx
lea esi, [edx - 6]
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x4a1674
mov edx, ecx
mov byte [edx + 0x1d], 0
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x20], 1
jmp 0x4a1fc4
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x4a16a1
test al, 4
je 0x4a1696
mov byte [ebx + esi - 1], 0xd
jmp 0x4a1706
inc ebx
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
jmp 0x4a1706
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x4a16b7
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x4a16dc
test al, 4
je 0x4a16fe
add ebx, 0xfffffffc
mov byte [ebx], 0xa
mov eax, 0xd
mov byte [ebx + 2], al
mov byte [ebx + 1], 0xc
mov byte [ebx + 4], al
mov byte [ebx + 3], 0x20
mov byte [ebx + esi + 3], al
mov esi, edx
jmp 0x4a1706
test al, 4
je 0x4a16fe
add ebx, 0xfffffffd
mov byte [ebx], 0xc
mov eax, 0xd
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x20
mov byte [ebx + 3], al
mov byte [ebx + esi + 2], al
lea esi, [edx - 1]
jmp 0x4a1706
mov byte [ebx], 0xc
mov byte [ebx + esi - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
inc ebx
test ecx, ecx
je 0x4a1779
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x4a1754
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x4a1779
test al, 4
je 0x4a179b
add ebx, 0xfffffffc
mov byte [ebx], 0xa
mov eax, 0xd
mov byte [ebx + 2], al
mov byte [ebx + 1], 0xc
mov byte [ebx + 4], al
mov byte [ebx + 3], 0x20
mov byte [ebx + esi + 3], al
mov esi, edx
jmp 0x4a17a3
test al, 4
je 0x4a179b
add ebx, 0xfffffffd
mov byte [ebx], 0xc
mov eax, 0xd
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x20
mov byte [ebx + 3], al
mov byte [ebx + esi + 2], al
lea esi, [edx - 1]
jmp 0x4a17a3
mov byte [ebx], 0xc
mov byte [ebx + esi - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
movzx eax, byte [edi + 0x158]
test al, 2
je 0x4a1996
mov ecx, dword [edi + 0x128]
cmp ecx, 1
je 0x4a182b
mov ecx, dword [0x5212e8]
test ecx, ecx
je 0x4a1996
movzx ecx, byte [edi + 0x160]
test ecx, 0x80
je 0x4a1817
mov ecx, dword [edi + 0x130]
cmp ecx, 0xfffffffa
je 0x4a182b
jmp 0x4a181d
mov ecx, dword [edi + 0x130]
cmp ecx, 2
je 0x4a182b
cmp ecx, 1
jne 0x4a1996
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4a1946
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x4a18dc
and eax, 4
shr eax, 2
test eax, eax
je 0x4a1860
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x4a1860
inc ebx
lea esi, [edx - 5]
jmp 0x4a18b3
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x4a1876
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x4a18ad
test eax, eax
je 0x4a1894
dec ebx
mov byte [ebx + 1], 0xd
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 2], al
lea esi, [edx - 3]
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], edx
jmp 0x4a18a4
mov edx, 0xa
mov byte [ebx], dl
mov byte [ebx + 1], dl
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x4a18b3
jmp 0x4a18d0
add ebx, 2
lea esi, [edx - 6]
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x4a18d0
mov edx, ecx
mov byte [edx + 0x1d], 0
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x20], 1
jmp 0x4a1fc4
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x4a1900
test al, 4
je 0x4a18f3
inc ebx
mov byte [ebx + esi - 1], 0xd
jmp 0x4a1966
add ebx, 2
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
jmp 0x4a1966
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x4a1916
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x4a1946
test al, 4
je 0x4a1933
dec ebx
mov byte [ebx + 1], 0xd
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 2], al
mov byte [ebx + esi + 1], 0xd
lea esi, [edx - 2]
jmp 0x4a1966
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], al
mov byte [ebx + esi], 0xd
lea esi, [edx - 3]
jmp 0x4a1966
test al, 4
je 0x4a195d
mov byte [ebx + 1], 0xa
mov eax, 0xd
mov byte [ebx], al
mov byte [ebx + esi], al
lea esi, [edx - 3]
jmp 0x4a1966
inc ebx
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4a19e3
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x4a19b3
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x4a19e3
test al, 4
je 0x4a19d0
dec ebx
mov byte [ebx + 1], 0xd
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 2], al
mov byte [ebx + esi + 1], 0xd
lea esi, [edx - 2]
jmp 0x4a1a03
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], al
mov byte [ebx + esi], 0xd
lea esi, [edx - 3]
jmp 0x4a1a03
test al, 4
je 0x4a19fa
mov byte [ebx + 1], 0xa
mov eax, 0xd
mov byte [ebx], al
mov byte [ebx + esi], al
lea esi, [edx - 3]
jmp 0x4a1a03
inc ebx
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
movzx eax, byte [edi + 0x158]
test al, 2
je 0x4a1b2c
mov ecx, dword [edi + 0x128]
cmp ecx, 1
je 0x4a1a8b
mov ecx, dword [0x5212e8]
test ecx, ecx
je 0x4a1b2c
movzx ecx, byte [edi + 0x160]
test ecx, 0x80
je 0x4a1a77
mov ecx, dword [edi + 0x130]
cmp ecx, 0xfffffffa
je 0x4a1a8b
jmp 0x4a1a7d
mov ecx, dword [edi + 0x130]
cmp ecx, 2
je 0x4a1a8b
cmp ecx, 1
jne 0x4a1b2c
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4a1ad6
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x4a1ad6
test al, 4
je 0x4a1ab2
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x4a1ab2
inc ebx
lea esi, [edx - 5]
jmp 0x4a1ab8
add ebx, 2
lea esi, [edx - 6]
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1acd
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x20], 1
jmp 0x4a1fc4
test al, 4
je 0x4a1af1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4a1af1
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x4a1af1
inc ebx
mov byte [ebx + esi - 1], 0xd
jmp 0x4a1afc
add ebx, 2
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
add ebx, 2
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
movzx eax, byte [edi + 0x158]
test al, 2
je 0x4a1c68
mov eax, dword [edi + 0x128]
cmp eax, 1
je 0x4a1bbd
mov eax, dword [0x5212e8]
test eax, eax
je 0x4a1c68
movzx eax, byte [edi + 0x160]
test eax, 0x80
je 0x4a1ba9
mov eax, dword [edi + 0x130]
cmp eax, 0xfffffffa
je 0x4a1bbd
jmp 0x4a1baf
mov eax, dword [edi + 0x130]
cmp eax, 2
je 0x4a1bbd
cmp eax, 1
jne 0x4a1c68
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4a1c39
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x4a1c0d
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4a1bdc
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x4a1bec
inc ebx
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
test eax, eax
jne 0x4a1bf2
jmp 0x4a1c04
add ebx, 2
lea esi, [edx - 6]
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4a1c04
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x4a1fc4
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x4a1c1d
add ebx, 2
lea esi, [edx - 6]
jmp 0x4a1c43
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4a1c2d
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x4a1c39
inc ebx
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
jmp 0x4a1c3f
add ebx, 2
lea esi, [edx - 6]
test eax, eax
je 0x4a1c4a
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1d], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4a1c8b
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4a1c7f
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x4a1c8b
inc ebx
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
jmp 0x4a1c91
add ebx, 2
lea esi, [edx - 6]
test eax, eax
je 0x4a1c9c
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1d], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
movzx eax, byte [edi + 0x158]
test al, 2
je 0x4a1d6b
mov eax, dword [edi + 0x128]
cmp eax, 1
je 0x4a1d0c
mov eax, dword [0x5212e8]
test eax, eax
je 0x4a1d6b
movzx eax, byte [edi + 0x160]
test eax, 0x80
je 0x4a1cfc
mov eax, dword [edi + 0x130]
cmp eax, 0xfffffffa
je 0x4a1d0c
jmp 0x4a1d02
mov eax, dword [edi + 0x130]
cmp eax, 2
je 0x4a1d0c
cmp eax, 1
jne 0x4a1d6b
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4a1d3c
movzx eax, byte [ecx + 0x1e]
test eax, eax
je 0x4a1d3c
mov byte [ecx + 0x1c], 0
add ebx, 2
lea esi, [edx - 6]
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1d33
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x20], 1
jmp 0x4a1fc4
add ebx, 2
lea esi, [edx - 6]
test ecx, ecx
je 0x4a1d4d
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
mov byte [ecx + 0x1d], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
add ebx, 2
lea esi, [edx - 6]
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1d7f
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1d], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
movzx ecx, byte [edi + 0x158]
mov dword [ebp - 0x1c], ecx
test cl, 2
je 0x4a1eca
mov ecx, dword [edi + 0x128]
cmp ecx, 1
je 0x4a1df9
mov ecx, dword [0x5212e8]
test ecx, ecx
je 0x4a1eca
movzx ecx, byte [edi + 0x160]
test ecx, 0x80
je 0x4a1de5
mov ecx, dword [edi + 0x130]
cmp ecx, 0xfffffffa
je 0x4a1df9
jmp 0x4a1deb
mov ecx, dword [edi + 0x130]
cmp ecx, 2
je 0x4a1df9
cmp ecx, 1
jne 0x4a1eca
mov eax, dword [edi + 0x7c]
inc ebx
test eax, eax
je 0x4a1e91
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x4a1e60
mov ecx, dword [ebp - 0x1c]
test cl, 4
je 0x4a1e22
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x4a1e22
lea esi, [edx - 5]
jmp 0x4a1e45
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4a1e32
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x4a1e41
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
test eax, eax
jne 0x4a1e45
jmp 0x4a1e57
inc ebx
lea esi, [edx - 6]
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4a1e57
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x4a1fc4
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x4a1e77
mov ecx, dword [ebp - 0x1c]
test cl, 4
je 0x4a1e91
mov byte [ebx + esi - 1], 0xd
jmp 0x4a1e9a
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4a1e87
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x4a1e91
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
jmp 0x4a1e9a
inc ebx
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
mov eax, dword [edi + 0x7c]
inc ebx
test eax, eax
je 0x4a1eec
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4a1ee2
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x4a1eec
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
jmp 0x4a1ef5
inc ebx
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x1c], 1
mov ecx, dword [edi + 0x7c]
mov dword [ecx + 0x10], edi
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x4a1fc4
mov byte [edx + 0x20], 0
jmp 0x4a1fc4
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4a1f7b
movzx edx, byte [eax + 0x1e]
test edx, edx
je 0x4a1f7b
mov edx, dword [edi + 0x128]
cmp edx, 1
je 0x4a1f75
mov edx, dword [0x5212e8]
test edx, edx
je 0x4a1f86
movzx edx, byte [edi + 0x160]
test edx, 0x80
je 0x4a1f65
mov edx, dword [edi + 0x130]
cmp edx, 0xfffffffa
je 0x4a1f75
jmp 0x4a1f6b
mov edx, dword [edi + 0x130]
cmp edx, 2
je 0x4a1f75
cmp edx, 1
jne 0x4a1f86
mov byte [eax + 0x20], 1
jmp 0x4a1fc4
mov edx, dword [edi + 0x128]
cmp edx, 1
je 0x4a1fbc
mov edx, dword [0x5212e8]
test edx, edx
je 0x4a1fc4
movzx edx, byte [edi + 0x160]
test edx, 0x80
je 0x4a1fac
mov edx, dword [edi + 0x130]
cmp edx, 0xfffffffa
je 0x4a1fbc
jmp 0x4a1fb2
mov edx, dword [edi + 0x130]
cmp edx, 2
je 0x4a1fbc
cmp edx, 1
jne 0x4a1fc4
test eax, eax
je 0x4a1fc4
mov byte [eax + 0x20], 0
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.004a21fc
and byte [edi + 0x15c], 0xbf
cmp eax, 0xffffffff
je 0x4a21ce
movzx eax, byte [edi + 0x15d]
test al, 8
je 0x4a2028
push dword [edi + 0xd4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4a2003
and byte [edi + 0x15d], 0xf7
jmp 0x4a2028
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
and byte [edi + 0x15d], 0xf7
mov dword [edi + 0xd8], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 4
mov dword [ebp - 0x1c], edx
push edi
mov dword [ebp - 0x18], ecx
call fcn.0049ec90
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x4a0f57
mov edx, dword [edi + 0x18]
test edx, edx
je 0x4a20be
movzx eax, byte [edx + 0x44]
test al, 2
je 0x4a2094
mov eax, 0x42
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov eax, dword [edi + 0x64]
test eax, eax
je 0x4a2082
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x42
mov esp, ebp
pop ebp
ret
movzx edx, byte [edi + 0x15c]
and edx, 7
mov eax, 0x42
push eax
push eax
push edx
push 0xffffffffffffffff
push edi
call fcn.00495320
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x42
push eax
push eax
push 1
call fcn.00490ca0
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xd
mov ecx, dword [edi + 0x38]
mov byte [ecx + esi + 1], 0xa
add esi, 2
jmp case.0x4a0f6f.5
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xa
inc esi
jmp case.0x4a0f6f.5
movzx eax, byte [edi + 0x15d]
test al, 0x20
je 0x4a2141
movzx edx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x18], edx
mov byte [esi], dl
mov ebx, dword [edi + 0x38]
movzx edx, byte [ebp - 0xf]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
mov byte [ebx + 1], al
mov eax, dword [edi + 0x38]
mov byte [eax + 2], dl
movzx edx, byte [ebp - 0x10]
mov ebx, dword [edi + 0x38]
mov byte [ebx + 3], dl
jmp 0x4a11c1
movzx edx, byte [ebp - 0x10]
movzx eax, byte [ebp - 0xf]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x14], eax
mov byte [esi], dl
mov ebx, dword [edi + 0x38]
mov byte [ebx + 1], al
movzx ebx, byte [ebp - 0xe]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x1c], ebx
mov byte [eax + 2], bl
movzx eax, byte [ebp - 0xd]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x18], eax
mov byte [esi + 3], al
jmp 0x4a11c1
mov edx, dword [edi + 0x38]
mov byte [edx + esi - 2], 0xd
mov ecx, dword [edi + 0x38]
mov byte [ecx + esi - 1], 0xa
jmp case.0x4a0f6f.5
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xd
inc esi
jmp case.0x4a0f6f.5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov dword [edi + 0xd8], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xa
jmp 0x4a1458
mov ecx, dword [edi + 0x38]
movsx ecx, byte [ecx + 5]
jmp 0x4a1567
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov dword [edi + 0xd8], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret