Function at 0x1014d9d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov edx, dword [edi + 0x4c]
test edx, edx
jne 0x1014d9ec
mov edx, dword [edi + 0x3c]
mov esi, dword [edi + 0x40]
test esi, esi
je 0x1014d9f9
neg esi
add esi, edx
jmp 0x1014d9fe
mov esi, edx
sub esi, dword [edi + 0x38]
movsx ebx, byte [edi + 0x154]
lea ecx, [esi + 4]
cmp ecx, dword [edi + 0xec]
jbe 0x1014da3e
cmp ebx, 1
je 0x1014da3e
push 0x200
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
call fcn.10154f30
mov ecx, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x1c]
test eax, eax
jne 0x1014ea2e
movsx ebx, byte [edi + 0x154]
dec ebx
cmp ebx, 7
ja case.0x1014da48.3
jmp dword [ebx*4 + 0x101bbfd0]
cmp byte [edi + 0x156], 1
je case.0x1014da48.5
test byte [edi + 0x16d], 0x40
jne case.0x1014da48.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014dabe
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x1014dabe
cmp dword [edi + 0x138], 1
je case.0x1014da48.5
cmp dword [0x103f788c], 0
je 0x1014dabe
movzx edx, byte [edi + 0x170]
test edx, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014daac
cmp ecx, 0xfffffffa
je case.0x1014da48.5
cmp ecx, 1
je case.0x1014da48.5
cmp ecx, 2
je case.0x1014da48.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x1014ead2
mov byte [edx + esi], 0xd
mov edx, dword [edi + 0x40]
mov byte [edx + esi + 1], 0xa
add esi, 2
jmp case.0x1014da48.5
cmp byte [edi + 0x156], 1
je case.0x1014da48.5
test byte [edi + 0x16d], 0x40
jne case.0x1014da48.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014db4c
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x1014db4c
cmp dword [edi + 0x138], 1
je case.0x1014da48.5
cmp dword [0x103f788c], 0
je 0x1014db4c
movzx edx, byte [edi + 0x170]
test edx, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014db3a
cmp ecx, 0xfffffffa
je case.0x1014da48.5
cmp ecx, 1
je case.0x1014da48.5
cmp ecx, 2
je case.0x1014da48.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x1014eb7e
mov byte [edx + esi], 0xd
inc esi
jmp case.0x1014da48.5
cmp byte [edi + 0x156], 1
je case.0x1014da48.5
test byte [edi + 0x16d], 0x40
jne case.0x1014da48.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014dbd0
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x1014dbd0
cmp dword [edi + 0x138], 1
je case.0x1014da48.5
cmp dword [0x103f788c], 0
je 0x1014dbd0
movzx edx, byte [edi + 0x170]
test edx, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014dbbe
cmp ecx, 0xfffffffa
je case.0x1014da48.5
cmp ecx, 1
je case.0x1014da48.5
cmp ecx, 2
je case.0x1014da48.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x1014eae9
mov byte [edx + esi], 0xa
inc esi
jmp case.0x1014da48.5
add esi, 0xfffffffc
mov edx, esi
and edx, 0xff
mov ebx, dword [edi + 0x40]
test ebx, ebx
mov dword [ebp - 0x10], esi
je 0x1014eaf6
test byte [edi + 0x16d], 0x20
je 0x1014dc3d
mov eax, esi
shr eax, 0x18
mov byte [ebx], al
mov ebx, dword [edi + 0x40]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, 0x10
movzx eax, al
mov byte [ebx + 1], al
mov ebx, dword [edi + 0x40]
shr esi, 8
mov dword [ebp - 0x1c], eax
mov eax, esi
and eax, 0xff
mov byte [ebx + 2], al
mov esi, dword [edi + 0x40]
mov dword [ebp - 0x14], eax
mov byte [esi + 3], dl
jmp 0x1014dc6a
movzx edx, byte [ebp - 0x10]
mov byte [ebx], dl
mov esi, dword [edi + 0x40]
movzx eax, byte [ebp - 0xf]
mov dword [ebp - 0x14], eax
mov byte [esi + 1], al
mov eax, dword [edi + 0x40]
movzx ebx, byte [ebp - 0xe]
mov dword [ebp - 0x1c], ebx
mov byte [eax + 2], bl
mov ebx, dword [edi + 0x40]
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x18], eax
mov byte [ebx + 3], al
test byte [edi + 0x16d], 0x20
je 0x1014dc95
mov esi, dword [edi + 0x3c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov byte [esi], al
mov eax, dword [edi + 0x3c]
mov byte [eax + 1], bl
mov ebx, dword [edi + 0x3c]
mov eax, dword [ebp - 0x14]
mov byte [ebx + 2], al
mov esi, dword [edi + 0x3c]
mov byte [esi + 3], dl
jmp 0x1014dcb5
mov esi, dword [edi + 0x3c]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov byte [esi], dl
mov edx, dword [edi + 0x3c]
mov byte [edx + 1], al
mov esi, dword [edi + 0x3c]
mov eax, dword [ebp - 0x18]
mov byte [esi + 2], bl
mov edx, dword [edi + 0x3c]
mov byte [edx + 3], al
mov esi, ecx
jmp case.0x1014da48.5
mov ecx, dword [edi + 0xf8]
cmp esi, ecx
jae 0x1014dcda
sub ecx, esi
push ecx
push 0x20
push edx
call fcn.101715a0
add esp, 0xc
mov esi, dword [edi + 0xf8]
test byte [edi + 0x168], 4
je case.0x1014da48.5
test byte [edi + 0x16a], 0x40
je case.0x1014da48.5
test byte [edi + 0x16b], 8
je case.0x1014da48.5
cmp byte [edi + 0x156], 1
je case.0x1014da48.5
test byte [edi + 0x16d], 0x40
jne case.0x1014da48.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014dd5c
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x1014dd5c
cmp dword [edi + 0x138], 1
je case.0x1014da48.5
cmp dword [0x103f788c], 0
je 0x1014dd5c
movzx edx, byte [edi + 0x170]
test edx, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014dd52
cmp ecx, 0xfffffffa
je case.0x1014da48.5
cmp ecx, 1
je case.0x1014da48.5
cmp ecx, 2
je case.0x1014da48.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x1014eb69
mov byte [edx + esi - 2], 0xd
mov edx, dword [edi + 0x40]
mov byte [edx + esi - 1], 0xa
jmp case.0x1014da48.5
push 0x3c3
push str.for_put.c
push 2
push 8
call fcn.101489f0
add esp, 0x10
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x1014dd97
mov ebx, ecx
jmp 0x1014dd9a
mov ebx, dword [edi + 0x38]
movsx edx, byte [edi + 0x156]
cmp edx, 2
jne 0x1014df95
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014de29
movzx ecx, byte [edx + 0x1c]
test ecx, ecx
jne 0x1014ddc1
movzx ecx, byte [edx + 0x1d]
test ecx, ecx
je 0x1014de22
movzx ecx, byte [edx + 0x20]
test ecx, ecx
je 0x1014ddff
cmp dword [edi + 0x138], 1
je 0x1014de22
cmp dword [0x103f788c], 0
je 0x1014ddff
movzx ecx, byte [edi + 0x170]
test ecx, 0x80
mov eax, dword [edi + 0x140]
je 0x1014ddf5
cmp eax, 0xfffffffa
je 0x1014de22
cmp eax, 1
je 0x1014de22
cmp eax, 2
je 0x1014de22
mov eax, edi
lea edx, [ebp - 0x14]
mov ecx, 1
mov byte [ebp - 0x14], 0xa
call fcn.1014d41c
cmp eax, 0xffffffff
je 0x1014eb8b
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014de29
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x7c]
test byte [edi + 0x168], 4
je 0x1014de48
test byte [edi + 0x16a], 0x40
je 0x1014de48
test byte [edi + 0x16b], 8
jne 0x1014dee3
movsx ecx, byte [edi + 0x154]
cmp ecx, 6
je 0x1014dee3
movzx eax, byte [edi + 0x16d]
cmp ecx, 8
mov dword [ebp - 0x18], eax
je 0x1014dedb
test byte [ebp - 0x18], 0x40
jne 0x1014dedb
test edx, edx
je 0x1014deb6
movzx ecx, byte [edx + 0x1e]
test ecx, ecx
je 0x1014deb6
mov ecx, dword [edi + 0x138]
cmp ecx, 1
je 0x1014def3
cmp dword [0x103f788c], 0
je 0x1014deb6
mov eax, dword [edi + 0x140]
mov dword [ebp - 0x1c], eax
movzx eax, byte [edi + 0x170]
test eax, 0x80
je 0x1014deaa
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x1014def3
cmp dword [ebp - 0x1c], 1
je 0x1014def3
cmp dword [ebp - 0x1c], 2
je 0x1014def3
mov edx, dword [edi + 0x40]
test edx, edx
je 0x1014eba9
mov byte [edx + esi], 0xa
movzx eax, byte [edi + 0x16d]
inc esi
mov ecx, dword [edi + 0x138]
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x18], eax
jmp 0x1014def3
mov ecx, dword [edi + 0x138]
jmp 0x1014def3
movzx eax, byte [edi + 0x16d]
mov ecx, dword [edi + 0x138]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
and eax, 0xffffffbf
mov byte [edi + 0x16d], al
test edx, edx
je 0x1014df4a
movzx eax, byte [edx + 0x1e]
test eax, eax
je 0x1014df4a
cmp ecx, 1
je 0x1014df41
cmp dword [0x103f788c], 0
je 0x1014df56
movzx ecx, byte [edi + 0x170]
test ecx, 0x80
mov eax, dword [edi + 0x140]
je 0x1014df33
cmp eax, 0xfffffffa
je 0x1014df41
cmp eax, 2
je 0x1014df41
cmp eax, 1
jne 0x1014ec03
mov byte [edx + 0x20], 1
jmp 0x1014e9e0
cmp ecx, 1
je 0x1014df84
cmp dword [0x103f788c], 0
je 0x1014e9e0
movzx ecx, byte [edi + 0x170]
test ecx, 0x80
mov eax, dword [edi + 0x140]
je 0x1014df76
cmp eax, 0xfffffffa
je 0x1014df84
cmp eax, 2
je 0x1014df84
cmp eax, 1
jne 0x1014e9e0
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
cmp edx, 1
jne 0x1014e951
cmp esi, 5
lea edx, [esi + 1]
je 0x1014dfa8
mov edx, esi
test ecx, ecx
je 0x1014dfb1
lea ebx, [ecx + 4]
jmp 0x1014dfb7
mov ebx, dword [edi + 0x38]
add ebx, 4
test ecx, ecx
lea esi, [edx - 4]
je 0x1014ebb5
movsx ecx, byte [ecx + 5]
cmp ecx, 0x31
ja case.0x1014dfcf.1
jmp dword [ecx*4 + 0x101bc000]
movzx eax, byte [edi + 0x168]
test al, 2
je 0x1014e190
cmp dword [edi + 0x138], 1
je 0x1014e029
cmp dword [0x103f788c], 0
je 0x1014e190
mov ecx, dword [edi + 0x140]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x170]
test ecx, 0x80
je 0x1014e019
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x1014e029
cmp dword [ebp - 0x1c], 2
je 0x1014e029
cmp dword [ebp - 0x1c], 1
jne 0x1014e190
mov ecx, dword [edi + 0x7c]
inc ebx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1014e136
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x1014e0da
and eax, 4
shr eax, 2
test eax, eax
je 0x1014e05e
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + 0x20]
test esi, esi
je 0x1014e05e
lea esi, [edx - 5]
jmp 0x1014e0b1
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + 0x1c]
test esi, esi
jne 0x1014e071
movzx esi, byte [ecx + 0x1d]
test esi, esi
je 0x1014e0ad
test eax, eax
je 0x1014e099
add ebx, 0xfffffffc
mov eax, 0xd
lea esi, [edx - 1]
mov byte [ebx], 0xa
mov byte [ebx + 1], 0xc
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x20
mov byte [ebx + 4], al
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], edx
jmp 0x1014e0a5
mov byte [ebx], 0xc
lea esi, [edx - 5]
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x1014e0b1
jmp 0x1014e0ce
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 0x1014e0ce
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 0x1014e9e0
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x1014e0fb
test al, 4
je 0x1014e0f0
mov byte [ebx + esi - 1], 0xd
jmp 0x1014e160
inc ebx
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
jmp 0x1014e160
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x1014e111
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x1014e136
test al, 4
je 0x1014e158
add ebx, 0xfffffffc
mov eax, 0xd
mov byte [ebx], 0xa
mov byte [ebx + 1], 0xc
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x20
mov byte [ebx + 4], al
mov byte [ebx + esi + 3], al
mov esi, edx
jmp 0x1014e160
test al, 4
je 0x1014e158
add ebx, 0xfffffffd
mov eax, 0xd
mov byte [ebx], 0xc
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 0x1014e160
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
mov ecx, dword [edi + 0x7c]
inc ebx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1014e1d3
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x1014e1ae
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x1014e1d3
test al, 4
je 0x1014e1f5
add ebx, 0xfffffffc
mov eax, 0xd
mov byte [ebx], 0xa
mov byte [ebx + 1], 0xc
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x20
mov byte [ebx + 4], al
mov byte [ebx + esi + 3], al
mov esi, edx
jmp 0x1014e1fd
test al, 4
je 0x1014e1f5
add ebx, 0xfffffffd
mov eax, 0xd
mov byte [ebx], 0xc
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 0x1014e1fd
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
movzx eax, byte [edi + 0x168]
test al, 2
je 0x1014e3ea
cmp dword [edi + 0x138], 1
je 0x1014e280
cmp dword [0x103f788c], 0
je 0x1014e3ea
mov ecx, dword [edi + 0x140]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x170]
test ecx, 0x80
je 0x1014e270
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x1014e280
cmp dword [ebp - 0x1c], 2
je 0x1014e280
cmp dword [ebp - 0x1c], 1
jne 0x1014e3ea
mov ecx, dword [edi + 0x7c]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x1014e39a
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x1014e330
and eax, 4
shr eax, 2
test eax, eax
je 0x1014e2b5
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x1014e2b5
inc ebx
lea esi, [edx - 5]
jmp 0x1014e307
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x1014e2cb
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x1014e301
test eax, eax
je 0x1014e2e9
dec ebx
mov eax, 0xa
lea esi, [edx - 3]
mov byte [ebx], al
mov byte [ebx + 1], 0xd
mov byte [ebx + 2], al
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], edx
jmp 0x1014e2f9
mov edx, 0xa
mov byte [ebx], dl
mov byte [ebx + 1], dl
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x1014e307
jmp 0x1014e324
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 0x1014e324
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 0x1014e9e0
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x1014e354
test al, 4
je 0x1014e347
inc ebx
mov byte [ebx + esi - 1], 0xd
jmp 0x1014e3ba
add ebx, 2
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
jmp 0x1014e3ba
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x1014e36a
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x1014e39a
test al, 4
je 0x1014e387
dec ebx
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], 0xd
mov byte [ebx + 2], al
mov byte [ebx + esi + 1], 0xd
lea esi, [edx - 2]
jmp 0x1014e3ba
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], al
mov byte [ebx + esi], 0xd
lea esi, [edx - 3]
jmp 0x1014e3ba
test al, 4
je 0x1014e3b1
mov eax, 0xd
mov byte [ebx], al
mov byte [ebx + 1], 0xa
mov byte [ebx + esi], al
lea esi, [edx - 3]
jmp 0x1014e3ba
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
mov ecx, dword [edi + 0x7c]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x1014e437
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x1014e407
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x1014e437
test al, 4
je 0x1014e424
dec ebx
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], 0xd
mov byte [ebx + 2], al
mov byte [ebx + esi + 1], 0xd
lea esi, [edx - 2]
jmp 0x1014e457
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], al
mov byte [ebx + esi], 0xd
lea esi, [edx - 3]
jmp 0x1014e457
test al, 4
je 0x1014e44e
mov eax, 0xd
mov byte [ebx], al
mov byte [ebx + 1], 0xa
mov byte [ebx + esi], al
lea esi, [edx - 3]
jmp 0x1014e457
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
movzx eax, byte [edi + 0x168]
test al, 2
je 0x1014e57d
cmp dword [edi + 0x138], 1
je 0x1014e4da
cmp dword [0x103f788c], 0
je 0x1014e57d
mov ecx, dword [edi + 0x140]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x170]
test ecx, 0x80
je 0x1014e4ca
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x1014e4da
cmp dword [ebp - 0x1c], 2
je 0x1014e4da
cmp dword [ebp - 0x1c], 1
jne 0x1014e57d
mov ecx, dword [edi + 0x7c]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x1014e525
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x1014e525
test al, 4
je 0x1014e501
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x1014e501
inc ebx
lea esi, [edx - 5]
jmp 0x1014e507
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 0x1014e51c
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x20], 1
jmp 0x1014e9e0
test al, 4
je 0x1014e542
cmp dword [ebp - 0x1c], 0
je 0x1014e542
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x1014e542
inc ebx
mov byte [ebx + esi - 1], 0xd
jmp 0x1014e54d
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
test byte [edi + 0x168], 2
je 0x1014e6ad
cmp dword [edi + 0x138], 1
je 0x1014e602
cmp dword [0x103f788c], 0
je 0x1014e6ad
movzx eax, byte [edi + 0x170]
test eax, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014e5f4
cmp ecx, 0xfffffffa
je 0x1014e602
cmp ecx, 2
je 0x1014e602
cmp ecx, 1
jne 0x1014e6ad
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1014e67e
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x1014e652
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x1014e621
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x1014e631
inc ebx
lea esi, [edx - 5]
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x1014e637
jmp 0x1014e649
add ebx, 2
lea esi, [edx - 6]
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1014e649
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x1014e9e0
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x1014e662
add ebx, 2
lea esi, [edx - 6]
jmp 0x1014e688
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x1014e672
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x1014e67e
inc ebx
lea esi, [edx - 5]
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
jmp 0x1014e684
add ebx, 2
lea esi, [edx - 6]
test eax, eax
je 0x1014e68f
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 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1014e6d0
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x1014e6c4
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x1014e6d0
inc ebx
lea esi, [edx - 5]
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
jmp 0x1014e6d6
add ebx, 2
lea esi, [edx - 6]
test eax, eax
je 0x1014e6e1
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 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
test byte [edi + 0x168], 2
je 0x1014e7a6
cmp dword [edi + 0x138], 1
je 0x1014e745
cmp dword [0x103f788c], 0
je 0x1014e7a6
movzx eax, byte [edi + 0x170]
test eax, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014e73b
cmp ecx, 0xfffffffa
je 0x1014e745
cmp ecx, 2
je 0x1014e745
cmp ecx, 1
jne 0x1014e7a6
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1014e752
movzx ecx, byte [eax + 0x1e]
jmp 0x1014e754
xor ecx, ecx
add ebx, 2
lea esi, [edx - 6]
test ecx, ecx
je 0x1014e77d
test eax, eax
je 0x1014e774
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1014e774
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x1014e9e0
test eax, eax
je 0x1014e788
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 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
add ebx, 2
lea esi, [edx - 6]
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e7ba
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 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
movzx ecx, byte [edi + 0x168]
test cl, 2
mov dword [ebp - 0x1c], ecx
je 0x1014e8f6
cmp dword [edi + 0x138], 1
je 0x1014e829
cmp dword [0x103f788c], 0
je 0x1014e8f6
movzx ecx, byte [edi + 0x170]
test ecx, 0x80
mov eax, dword [edi + 0x140]
je 0x1014e81b
cmp eax, 0xfffffffa
je 0x1014e829
cmp eax, 2
je 0x1014e829
cmp eax, 1
jne 0x1014e8f6
mov eax, dword [edi + 0x7c]
inc ebx
test eax, eax
je 0x1014e8bd
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x1014e88e
test byte [ebp - 0x1c], 4
je 0x1014e850
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x1014e850
lea esi, [edx - 5]
jmp 0x1014e873
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x1014e860
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x1014e86f
mov byte [ebx], 0xa
lea esi, [edx - 5]
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x1014e873
jmp 0x1014e885
inc ebx
lea esi, [edx - 6]
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1014e885
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x1014e9e0
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x1014e8a3
test byte [ebp - 0x1c], 4
je 0x1014e8bd
mov byte [ebx + esi - 1], 0xd
jmp 0x1014e8c6
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x1014e8b3
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x1014e8bd
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
jmp 0x1014e8c6
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
mov eax, dword [edi + 0x7c]
inc ebx
test eax, eax
je 0x1014e918
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x1014e90e
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x1014e918
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
jmp 0x1014e921
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 0x1014e9e0
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1014e9e0
mov byte [edx + 0x20], 0
jmp 0x1014e9e0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1014ebe6
mov ecx, dword [edi + 0x138]
movzx edx, byte [eax + 0x1e]
test edx, edx
je 0x1014e9a6
cmp ecx, 1
je 0x1014e9a0
cmp dword [0x103f788c], 0
je 0x1014e9b2
movzx edx, byte [edi + 0x170]
test edx, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014e992
cmp ecx, 0xfffffffa
je 0x1014e9a0
cmp ecx, 2
je 0x1014e9a0
cmp ecx, 1
jne 0x1014ebf1
mov byte [eax + 0x20], 1
jmp 0x1014e9e0
cmp ecx, 1
je 0x1014e9d8
cmp dword [0x103f788c], 0
je 0x1014e9e0
movzx edx, byte [edi + 0x170]
test edx, 0x80
mov ecx, dword [edi + 0x140]
je 0x1014e9ce
cmp ecx, 0xfffffffa
je 0x1014e9d8
cmp ecx, 2
je 0x1014e9d8
cmp ecx, 1
jne 0x1014e9e0
test eax, eax
je 0x1014e9e0
mov byte [eax + 0x20], 0
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.1014d41c
and byte [edi + 0x16c], 0xbf
cmp eax, 0xffffffff
je 0x1014eb8b
test byte [edi + 0x16d], 8
je 0x1014ea1f
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1014ebc1
and byte [edi + 0x16d], 0xf7
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 4
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
call fcn.10154f30
mov ecx, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x1c]
test eax, eax
je 0x1014da37
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1014eab3
test byte [eax + 0x44], 2
je 0x1014ea89
mov edx, 0x42
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov eax, dword [edi + 0x64]
test eax, eax
je 0x1014ea77
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov eax, 0x42
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x42
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.1014f8d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x42
push eax
push eax
push 1
call fcn.101468f0
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
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.0x1014da48.5
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xa
inc esi
jmp case.0x1014da48.5
test byte [edi + 0x16d], 0x20
je 0x1014eb34
mov esi, dword [edi + 0x38]
movzx edx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
mov byte [esi], dl
mov ebx, dword [edi + 0x38]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov byte [ebx + 1], al
mov eax, dword [edi + 0x38]
movzx edx, byte [ebp - 0xf]
mov dword [ebp - 0x14], edx
mov byte [eax + 2], dl
mov ebx, dword [edi + 0x38]
movzx edx, byte [ebp - 0x10]
mov byte [ebx + 3], dl
jmp 0x1014dc6a
mov esi, dword [edi + 0x38]
movzx edx, byte [ebp - 0x10]
movzx eax, byte [ebp - 0xf]
mov byte [esi], dl
mov ebx, dword [edi + 0x38]
mov dword [ebp - 0x14], eax
mov byte [ebx + 1], al
mov eax, dword [edi + 0x38]
movzx ebx, byte [ebp - 0xe]
mov dword [ebp - 0x1c], ebx
mov byte [eax + 2], bl
mov esi, dword [edi + 0x38]
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x18], eax
mov byte [esi + 3], al
jmp 0x1014dc6a
mov edx, dword [edi + 0x38]
mov byte [edx + esi - 2], 0xd
mov ecx, dword [edi + 0x38]
mov byte [ecx + esi - 1], 0xa
jmp case.0x1014da48.5
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xd
inc esi
jmp case.0x1014da48.5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xa
jmp 0x1014dec5
mov ecx, dword [edi + 0x38]
movsx ecx, byte [ecx + 5]
jmp 0x1014dfc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov eax, 0x26
and byte [edi + 0x16d], 0xf7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x138]
jmp 0x1014e9a6
cmp dword [0x103f788c], 0
jne 0x1014e9b4
jmp 0x1014e9e0
cmp dword [0x103f788c], 0
jne 0x1014df5c
jmp 0x1014e9e0