Function at 0x418c40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
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 0x418c5c
mov edx, dword [edi + 0x3c]
mov ebx, dword [edi + 0x40]
test ebx, ebx
je 0x418c69
neg ebx
add ebx, edx
jmp 0x418c6e
mov ebx, edx
sub ebx, dword [edi + 0x38]
movsx eax, byte [edi + 0x15c]
lea ecx, [ebx + 4]
cmp ecx, dword [edi + 0xec]
jbe 0x418cae
cmp eax, 1
je 0x418cae
push 0x200
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
call fcn.0041bb00
mov ecx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 0x18]
test eax, eax
jne 0x419b68
movsx eax, byte [edi + 0x15c]
dec eax
cmp eax, 7
ja case.0x418cb8.3
jmp dword [eax*4 + 0x4d14b4]
cmp byte [edi + 0x15e], 1
je case.0x418cb8.5
test byte [edi + 0x175], 0x40
jne case.0x418cb8.5
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x418d2b
cmp byte [eax + 0x1e], 0
je 0x418d2b
cmp dword [edi + 0x13c], 1
je case.0x418cb8.5
cmp dword [0x4f9460], 0
je 0x418d2b
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov edx, dword [edi + 0x144]
je 0x418d19
cmp edx, 0xfffffffa
je case.0x418cb8.5
cmp edx, 1
je case.0x418cb8.5
cmp edx, 2
je case.0x418cb8.5
mov eax, dword [edi + 0x40]
test eax, eax
je 0x419c03
mov byte [eax + ebx], 0xd
mov eax, dword [edi + 0x40]
mov byte [eax + ebx + 1], 0xa
add ebx, 2
jmp case.0x418cb8.5
cmp byte [edi + 0x15e], 1
je case.0x418cb8.5
test byte [edi + 0x175], 0x40
jne case.0x418cb8.5
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x418db6
cmp byte [eax + 0x1e], 0
je 0x418db6
cmp dword [edi + 0x13c], 1
je case.0x418cb8.5
cmp dword [0x4f9460], 0
je 0x418db6
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov edx, dword [edi + 0x144]
je 0x418da4
cmp edx, 0xfffffffa
je case.0x418cb8.5
cmp edx, 1
je case.0x418cb8.5
cmp edx, 2
je case.0x418cb8.5
mov eax, dword [edi + 0x40]
test eax, eax
je 0x419ca9
mov byte [eax + ebx], 0xd
inc ebx
jmp case.0x418cb8.5
cmp byte [edi + 0x15e], 1
je case.0x418cb8.5
test byte [edi + 0x175], 0x40
jne case.0x418cb8.5
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x418e37
cmp byte [eax + 0x1e], 0
je 0x418e37
cmp dword [edi + 0x13c], 1
je case.0x418cb8.5
cmp dword [0x4f9460], 0
je 0x418e37
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov edx, dword [edi + 0x144]
je 0x418e25
cmp edx, 0xfffffffa
je case.0x418cb8.5
cmp edx, 1
je case.0x418cb8.5
cmp edx, 2
je case.0x418cb8.5
mov eax, dword [edi + 0x40]
test eax, eax
je 0x419c1a
mov byte [eax + ebx], 0xa
inc ebx
jmp case.0x418cb8.5
mov eax, dword [edi + 0x40]
add ebx, 0xfffffffc
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x419c27
test byte [edi + 0x175], 0x20
je 0x418e91
mov edx, ebx
shr edx, 0x18
mov byte [eax], dl
mov eax, ebx
mov esi, dword [edi + 0x40]
shr eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [esi + 1], al
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x18], edx
mov edx, ebx
shr edx, 8
mov byte [eax + 2], dl
mov esi, dword [edi + 0x40]
mov byte [esi + 3], bl
jmp 0x418ebb
movzx ebx, byte [ebp - 0x10]
mov byte [eax], bl
mov esi, dword [edi + 0x40]
movzx edx, byte [ebp - 0xf]
movzx eax, byte [ebp - 0xe]
mov byte [esi + 1], dl
mov esi, dword [edi + 0x40]
mov dword [ebp - 0x14], eax
mov byte [esi + 2], al
mov esi, dword [edi + 0x40]
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x18], eax
mov byte [esi + 3], al
test byte [edi + 0x175], 0x20
je 0x418ee3
mov esi, dword [edi + 0x3c]
mov eax, dword [ebp - 0x18]
mov byte [esi], al
mov esi, dword [edi + 0x3c]
mov eax, dword [ebp - 0x14]
mov byte [esi + 1], al
mov eax, dword [edi + 0x3c]
mov byte [eax + 2], dl
mov edx, dword [edi + 0x3c]
mov byte [edx + 3], bl
jmp 0x418f00
mov esi, dword [edi + 0x3c]
mov byte [esi], bl
mov eax, dword [edi + 0x3c]
mov byte [eax + 1], dl
mov ebx, dword [edi + 0x3c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov byte [ebx + 2], dl
mov edx, dword [edi + 0x3c]
mov byte [edx + 3], al
mov ebx, ecx
jmp case.0x418cb8.5
mov eax, dword [edi + 0xf8]
cmp ebx, eax
jae 0x418f25
sub eax, ebx
push eax
push 0x20
push edx
call fcn.004b4870
add esp, 0xc
mov ebx, dword [edi + 0xf8]
test byte [edi + 0x170], 4
je case.0x418cb8.5
test byte [edi + 0x172], 0x40
je case.0x418cb8.5
test byte [edi + 0x173], 8
je case.0x418cb8.5
cmp byte [edi + 0x15e], 1
je case.0x418cb8.5
test byte [edi + 0x175], 0x40
jne case.0x418cb8.5
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x418fa0
cmp byte [eax + 0x1e], 0
je 0x418fa0
cmp dword [edi + 0x13c], 1
je case.0x418cb8.5
cmp dword [0x4f9460], 0
je 0x418fa0
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov edx, dword [edi + 0x144]
je 0x418f96
cmp edx, 0xfffffffa
je case.0x418cb8.5
cmp edx, 1
je case.0x418cb8.5
cmp edx, 2
je case.0x418cb8.5
mov eax, dword [edi + 0x40]
test eax, eax
je 0x419c94
mov byte [eax + ebx - 2], 0xd
mov eax, dword [edi + 0x40]
mov byte [eax + ebx - 1], 0xa
jmp case.0x418cb8.5
push 0x3ce
push str.for_put.c
push 2
push 8
call fcn.0040ab30
add esp, 0x10
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x418fdb
mov esi, ecx
jmp 0x418fde
mov esi, dword [edi + 0x38]
movsx eax, byte [edi + 0x15e]
cmp eax, 2
jne 0x4191cc
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x419066
cmp byte [edx + 0x1c], 0
jne 0x419001
cmp byte [edx + 0x1d], 0
je 0x41905f
cmp byte [edx + 0x20], 0
je 0x41903c
cmp dword [edi + 0x13c], 1
je 0x41905f
cmp dword [0x4f9460], 0
je 0x41903c
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov ecx, dword [edi + 0x144]
je 0x419032
cmp ecx, 0xfffffffa
je 0x41905f
cmp ecx, 1
je 0x41905f
cmp ecx, 2
je 0x41905f
mov eax, edi
lea edx, [ebp - 0x10]
mov ecx, 1
mov byte [ebp - 0x10], 0xa
call fcn.004185cc
cmp eax, 0xffffffff
je 0x419cb6
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x419066
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x7c]
test byte [edi + 0x170], 4
je 0x419085
test byte [edi + 0x172], 0x40
je 0x419085
test byte [edi + 0x173], 8
jne 0x41911e
movsx ecx, byte [edi + 0x15c]
cmp ecx, 6
je 0x41911e
movzx eax, byte [edi + 0x175]
cmp ecx, 8
mov dword [ebp - 0x14], eax
je 0x419116
test byte [ebp - 0x14], 0x40
jne 0x419116
test edx, edx
je 0x4190f1
cmp byte [edx + 0x1e], 0
je 0x4190f1
mov ecx, dword [edi + 0x13c]
cmp ecx, 1
je 0x41912e
cmp dword [0x4f9460], 0
je 0x4190f1
mov eax, dword [edi + 0x144]
mov dword [ebp - 0x18], eax
movzx eax, byte [edi + 0x178]
test eax, 0x80
je 0x4190e5
cmp dword [ebp - 0x18], 0xfffffffa
je 0x41912e
cmp dword [ebp - 0x18], 1
je 0x41912e
cmp dword [ebp - 0x18], 2
je 0x41912e
mov eax, dword [edi + 0x40]
test eax, eax
je 0x419cd4
mov byte [eax + ebx], 0xa
movzx eax, byte [edi + 0x175]
inc ebx
mov ecx, dword [edi + 0x13c]
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x14], eax
jmp 0x41912e
mov ecx, dword [edi + 0x13c]
jmp 0x41912e
movzx eax, byte [edi + 0x175]
mov ecx, dword [edi + 0x13c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0xffffffbf
mov byte [edi + 0x175], al
test edx, edx
je 0x419182
cmp byte [edx + 0x1e], 0
je 0x419182
cmp ecx, 1
je 0x419179
cmp dword [0x4f9460], 0
je 0x41918e
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov ecx, dword [edi + 0x144]
je 0x41916b
cmp ecx, 0xfffffffa
je 0x419179
cmp ecx, 2
je 0x419179
cmp ecx, 1
jne 0x419d23
mov byte [edx + 0x20], 1
jmp 0x419b1a
cmp ecx, 1
je 0x4191bb
cmp dword [0x4f9460], 0
je 0x419b1a
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov ecx, dword [edi + 0x144]
je 0x4191ad
cmp ecx, 0xfffffffa
je 0x4191bb
cmp ecx, 2
je 0x4191bb
cmp ecx, 1
jne 0x419b1a
test edx, edx
je 0x419b1a
mov byte [edx + 0x20], 0
jmp 0x419b1a
cmp eax, 1
jne 0x419a91
cmp ebx, 5
lea edx, [ebx + 1]
je 0x4191df
mov edx, ebx
test ecx, ecx
je 0x4191e8
lea esi, [ecx + 4]
jmp 0x4191ee
mov esi, dword [edi + 0x38]
add esi, 4
test ecx, ecx
lea ebx, [edx - 4]
je 0x419ce0
movsx eax, byte [ecx + 5]
cmp eax, 0x31
ja case.0x419206.1
jmp dword [eax*4 + 0x4d14e0]
movzx eax, byte [edi + 0x170]
test al, 2
je 0x419389
cmp dword [edi + 0x13c], 1
je 0x419260
cmp dword [0x4f9460], 0
je 0x419389
mov ecx, dword [edi + 0x144]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi + 0x178]
test ecx, 0x80
je 0x419250
cmp dword [ebp - 0x18], 0xfffffffa
je 0x419260
cmp dword [ebp - 0x18], 2
je 0x419260
cmp dword [ebp - 0x18], 1
jne 0x419389
mov ecx, dword [edi + 0x7c]
inc esi
test ecx, ecx
je 0x419333
cmp byte [ecx + 0x1e], 0
je 0x4192e6
and eax, 4
shr eax, 2
test eax, eax
je 0x419287
cmp byte [ecx + 0x20], 0
je 0x419287
lea ebx, [edx - 5]
jmp 0x4192cb
cmp byte [ecx + 0x1c], 0
jne 0x419293
cmp byte [ecx + 0x1d], 0
je 0x4192c7
test eax, eax
je 0x4192b8
add esi, 0xfffffffc
mov eax, 0xd
lea ebx, [edx - 1]
mov byte [esi], 0xa
mov byte [esi + 1], 0xc
mov byte [esi + 2], al
mov byte [esi + 3], 0x20
mov byte [esi + 4], al
mov ecx, dword [edi + 0x7c]
jmp 0x4192c1
mov byte [esi], 0xc
lea ebx, [edx - 5]
mov ecx, dword [edi + 0x7c]
test ecx, ecx
jne 0x4192cb
jmp 0x4192dd
inc esi
lea ebx, [edx - 6]
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4192dd
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x7c]
mov byte [ecx + 0x20], 1
jmp 0x419b1a
cmp byte [ecx + 0x20], 0
je 0x419302
test al, 4
je 0x4192f7
mov byte [esi + ebx - 1], 0xd
jmp 0x41935d
inc esi
lea ebx, [edx - 5]
mov byte [ebx + esi - 1], 0xd
jmp 0x41935d
cmp byte [ecx + 0x1c], 0
jne 0x41930e
cmp byte [ecx + 0x1d], 0
je 0x419333
test al, 4
je 0x419355
add esi, 0xfffffffc
mov eax, 0xd
mov byte [esi], 0xa
mov byte [esi + 1], 0xc
mov byte [esi + 2], al
mov byte [esi + 3], 0x20
mov byte [esi + 4], al
mov byte [esi + ebx + 3], al
mov ebx, edx
jmp 0x41935d
test al, 4
je 0x419355
add esi, 0xfffffffd
mov eax, 0xd
mov byte [esi], 0xc
mov byte [esi + 1], al
mov byte [esi + 2], 0x20
mov byte [esi + 3], al
mov byte [esi + ebx + 2], al
lea ebx, [edx - 1]
jmp 0x41935d
mov byte [esi], 0xc
mov byte [esi + ebx - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
mov ecx, dword [edi + 0x7c]
inc esi
test ecx, ecx
je 0x4193c2
cmp byte [ecx + 0x1c], 0
jne 0x41939d
cmp byte [ecx + 0x1d], 0
je 0x4193c2
test al, 4
je 0x4193e4
add esi, 0xfffffffc
mov eax, 0xd
mov byte [esi], 0xa
mov byte [esi + 1], 0xc
mov byte [esi + 2], al
mov byte [esi + 3], 0x20
mov byte [esi + 4], al
mov byte [esi + ebx + 3], al
mov ebx, edx
jmp 0x4193ec
test al, 4
je 0x4193e4
add esi, 0xfffffffd
mov eax, 0xd
mov byte [esi], 0xc
mov byte [esi + 1], al
mov byte [esi + 2], 0x20
mov byte [esi + 3], al
mov byte [esi + ebx + 2], al
lea ebx, [edx - 1]
jmp 0x4193ec
mov byte [esi], 0xc
mov byte [esi + ebx - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
movzx eax, byte [edi + 0x170]
test al, 2
je 0x419594
cmp dword [edi + 0x13c], 1
je 0x41946b
cmp dword [0x4f9460], 0
je 0x419594
mov ecx, dword [edi + 0x144]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi + 0x178]
test ecx, 0x80
je 0x41945b
cmp dword [ebp - 0x18], 0xfffffffa
je 0x41946b
cmp dword [ebp - 0x18], 2
je 0x41946b
cmp dword [ebp - 0x18], 1
jne 0x419594
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x419548
cmp byte [ecx + 0x1e], 0
je 0x4194ed
and eax, 4
shr eax, 2
test eax, eax
je 0x419492
cmp byte [ecx + 0x20], 0
je 0x419492
inc esi
lea ebx, [edx - 5]
jmp 0x4194d2
cmp byte [ecx + 0x1c], 0
jne 0x41949e
cmp byte [ecx + 0x1d], 0
je 0x4194cc
test eax, eax
je 0x4194b9
dec esi
mov eax, 0xa
lea ebx, [edx - 3]
mov byte [esi], al
mov byte [esi + 1], 0xd
mov byte [esi + 2], al
mov ecx, dword [edi + 0x7c]
jmp 0x4194c6
mov eax, 0xa
mov byte [esi], al
mov byte [esi + 1], al
mov ecx, dword [edi + 0x7c]
test ecx, ecx
jne 0x4194d2
jmp 0x4194e4
add esi, 2
lea ebx, [edx - 6]
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4194e4
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x7c]
mov byte [ecx + 0x20], 1
jmp 0x419b1a
cmp byte [ecx + 0x20], 0
je 0x41950c
test al, 4
je 0x4194ff
inc esi
mov byte [esi + ebx - 1], 0xd
jmp 0x419568
add esi, 2
lea ebx, [edx - 5]
mov byte [ebx + esi - 1], 0xd
jmp 0x419568
cmp byte [ecx + 0x1c], 0
jne 0x419518
cmp byte [ecx + 0x1d], 0
je 0x419548
test al, 4
je 0x419535
dec esi
mov eax, 0xa
mov byte [esi], al
mov byte [esi + 1], 0xd
mov byte [esi + 2], al
mov byte [esi + ebx + 1], 0xd
lea ebx, [edx - 2]
jmp 0x419568
mov eax, 0xa
mov byte [esi], al
mov byte [esi + 1], al
mov byte [esi + ebx], 0xd
lea ebx, [edx - 3]
jmp 0x419568
test al, 4
je 0x41955f
mov eax, 0xd
mov byte [esi], al
mov byte [esi + 1], 0xa
mov byte [esi + ebx], al
lea ebx, [edx - 3]
jmp 0x419568
inc esi
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4195d7
cmp byte [ecx + 0x1c], 0
jne 0x4195a7
cmp byte [ecx + 0x1d], 0
je 0x4195d7
test al, 4
je 0x4195c4
dec esi
mov eax, 0xa
mov byte [esi], al
mov byte [esi + 1], 0xd
mov byte [esi + 2], al
mov byte [esi + ebx + 1], 0xd
lea ebx, [edx - 2]
jmp 0x4195f7
mov eax, 0xa
mov byte [esi], al
mov byte [esi + 1], al
mov byte [esi + ebx], 0xd
lea ebx, [edx - 3]
jmp 0x4195f7
test al, 4
je 0x4195ee
mov eax, 0xd
mov byte [esi], al
mov byte [esi + 1], 0xa
mov byte [esi + ebx], al
lea ebx, [edx - 3]
jmp 0x4195f7
inc esi
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
movzx eax, byte [edi + 0x170]
test al, 2
je 0x419701
cmp dword [edi + 0x13c], 1
je 0x419676
cmp dword [0x4f9460], 0
je 0x419701
mov ecx, dword [edi + 0x144]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi + 0x178]
test ecx, 0x80
je 0x419666
cmp dword [ebp - 0x18], 0xfffffffa
je 0x419676
cmp dword [ebp - 0x18], 2
je 0x419676
cmp dword [ebp - 0x18], 1
jne 0x419701
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4196b4
cmp byte [ecx + 0x1e], 0
je 0x4196b4
test al, 4
je 0x419693
cmp byte [ecx + 0x20], 0
je 0x419693
inc esi
lea ebx, [edx - 5]
jmp 0x419699
add esi, 2
lea ebx, [edx - 6]
mov byte [ecx + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4196ab
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x419b1a
test al, 4
je 0x4196ca
test ecx, ecx
je 0x4196ca
cmp byte [ecx + 0x20], 0
je 0x4196ca
inc esi
mov byte [esi + ebx - 1], 0xd
jmp 0x4196d5
add esi, 2
lea ebx, [edx - 5]
mov byte [ebx + esi - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
add esi, 2
lea ebx, [edx - 5]
mov byte [ebx + esi - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
test byte [edi + 0x170], 2
je 0x41981d
cmp dword [edi + 0x13c], 1
je 0x419782
cmp dword [0x4f9460], 0
je 0x41981d
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov ecx, dword [edi + 0x144]
je 0x419774
cmp ecx, 0xfffffffa
je 0x419782
cmp ecx, 2
je 0x419782
cmp ecx, 1
jne 0x41981d
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4197f2
cmp byte [eax + 0x1e], 0
je 0x4197cc
cmp byte [eax + 0x1c], 0
jne 0x41979b
cmp byte [eax + 0x1d], 0
je 0x4197ab
inc esi
lea ebx, [edx - 5]
mov byte [esi], 0xa
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x4197b1
jmp 0x4197c3
add esi, 2
lea ebx, [edx - 6]
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4197c3
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x419b1a
cmp byte [eax + 0x20], 0
je 0x4197da
add esi, 2
lea ebx, [edx - 6]
jmp 0x4197fc
cmp byte [eax + 0x1c], 0
jne 0x4197e6
cmp byte [eax + 0x1d], 0
je 0x4197f2
inc esi
lea ebx, [edx - 5]
mov byte [esi], 0xa
mov eax, dword [edi + 0x7c]
jmp 0x4197f8
add esi, 2
lea ebx, [edx - 6]
test eax, eax
je 0x419803
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1d], 1
mov eax, dword [edi + 0x7c]
mov dword [eax + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41983c
cmp byte [eax + 0x1c], 0
jne 0x419830
cmp byte [eax + 0x1d], 0
je 0x41983c
inc esi
lea ebx, [edx - 5]
mov byte [esi], 0xa
mov eax, dword [edi + 0x7c]
jmp 0x419842
add esi, 2
lea ebx, [edx - 6]
test eax, eax
je 0x41984d
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1d], 1
mov eax, dword [edi + 0x7c]
mov dword [eax + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
test byte [edi + 0x170], 2
je 0x41990a
cmp dword [edi + 0x13c], 1
je 0x4198ad
cmp dword [0x4f9460], 0
je 0x41990a
movzx eax, byte [edi + 0x178]
test eax, 0x80
mov ecx, dword [edi + 0x144]
je 0x4198a3
cmp ecx, 0xfffffffa
je 0x4198ad
cmp ecx, 2
je 0x4198ad
cmp ecx, 1
jne 0x41990a
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4198ba
movzx eax, byte [ecx + 0x1e]
jmp 0x4198bc
xor eax, eax
add esi, 2
lea ebx, [edx - 6]
test eax, eax
je 0x4198e5
test ecx, ecx
je 0x4198dc
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4198dc
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x7c]
mov byte [ecx + 0x20], 1
jmp 0x419b1a
test ecx, ecx
je 0x4198f0
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
mov byte [ecx + 0x1d], 1
mov eax, dword [edi + 0x7c]
mov dword [eax + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
mov eax, dword [edi + 0x7c]
add esi, 2
test eax, eax
lea ebx, [edx - 6]
je 0x41991e
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1d], 1
mov eax, dword [edi + 0x7c]
mov dword [eax + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
movzx eax, byte [edi + 0x170]
test al, 2
je 0x419a3e
cmp dword [edi + 0x13c], 1
je 0x41998b
cmp dword [0x4f9460], 0
je 0x419a3e
mov ecx, dword [edi + 0x144]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi + 0x178]
test ecx, 0x80
je 0x41997b
cmp dword [ebp - 0x18], 0xfffffffa
je 0x41998b
cmp dword [ebp - 0x18], 2
je 0x41998b
cmp dword [ebp - 0x18], 1
jne 0x419a3e
mov ecx, dword [edi + 0x7c]
inc esi
test ecx, ecx
je 0x419a09
cmp byte [ecx + 0x1e], 0
je 0x4199e2
test al, 4
je 0x4199a8
cmp byte [ecx + 0x20], 0
je 0x4199a8
lea ebx, [edx - 5]
jmp 0x4199c7
cmp byte [ecx + 0x1c], 0
jne 0x4199b4
cmp byte [ecx + 0x1d], 0
je 0x4199c3
mov byte [esi], 0xa
lea ebx, [edx - 5]
mov ecx, dword [edi + 0x7c]
test ecx, ecx
jne 0x4199c7
jmp 0x4199d9
inc esi
lea ebx, [edx - 6]
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x4199d9
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x7c]
mov byte [ecx + 0x20], 1
jmp 0x419b1a
cmp byte [ecx + 0x20], 0
je 0x4199f3
test al, 4
je 0x419a09
mov byte [esi + ebx - 1], 0xd
jmp 0x419a12
cmp byte [ecx + 0x1c], 0
jne 0x4199ff
cmp byte [ecx + 0x1d], 0
je 0x419a09
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
jmp 0x419a12
inc esi
lea ebx, [edx - 5]
mov byte [ebx + esi - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
mov eax, dword [edi + 0x7c]
inc esi
test eax, eax
je 0x419a5c
cmp byte [eax + 0x1c], 0
jne 0x419a52
cmp byte [eax + 0x1d], 0
je 0x419a5c
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
jmp 0x419a65
inc esi
lea ebx, [edx - 5]
mov byte [ebx + esi - 1], 0xd
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1c], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0x10], edi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x419b1a
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x419b16
jmp 0x419b1a
mov eax, dword [edi + 0x7c]
test eax, eax
mov edx, dword [edi + 0x13c]
je 0x419ae0
cmp byte [eax + 0x1e], 0
je 0x419ae0
cmp edx, 1
je 0x419ada
cmp dword [0x4f9460], 0
je 0x419aec
movzx edx, byte [edi + 0x178]
test edx, 0x80
mov ecx, dword [edi + 0x144]
je 0x419acc
cmp ecx, 0xfffffffa
je 0x419ada
cmp ecx, 2
je 0x419ada
cmp ecx, 1
jne 0x419d11
mov byte [eax + 0x20], 1
jmp 0x419b1a
cmp edx, 1
je 0x419b12
cmp dword [0x4f9460], 0
je 0x419b1a
movzx edx, byte [edi + 0x178]
test edx, 0x80
mov ecx, dword [edi + 0x144]
je 0x419b08
cmp ecx, 0xfffffffa
je 0x419b12
cmp ecx, 2
je 0x419b12
cmp ecx, 1
jne 0x419b1a
test eax, eax
je 0x419b1a
mov byte [eax + 0x20], 0
mov eax, edi
mov edx, esi
mov ecx, ebx
call fcn.004185cc
and byte [edi + 0x174], 0xbf
cmp eax, 0xffffffff
je 0x419cb6
test byte [edi + 0x175], 8
je 0x419b59
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x419cec
and byte [edi + 0x175], 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 - 0x18], edx
mov dword [ebp - 0x14], ecx
call fcn.0041bb00
mov ecx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 0x18]
test eax, eax
je 0x418ca7
mov eax, dword [edi + 0x18]
test eax, eax
je 0x419be7
test byte [eax + 0x44], 2
je 0x419bc0
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 0x419bb1
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov eax, 0x42
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x42
push eax
movzx edx, byte [edi + 0x174]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.00423970
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x42
push eax
push eax
push 1
call fcn.00408a80
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x38]
mov byte [eax + ebx], 0xd
mov edx, dword [edi + 0x38]
mov byte [edx + ebx + 1], 0xa
add ebx, 2
jmp case.0x418cb8.5
mov eax, dword [edi + 0x38]
mov byte [eax + ebx], 0xa
inc ebx
jmp case.0x418cb8.5
test byte [edi + 0x175], 0x20
je 0x419c62
mov ebx, dword [edi + 0x38]
movzx edx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
mov byte [ebx], dl
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x18], edx
movzx edx, byte [ebp - 0xf]
mov byte [esi + 1], al
mov ebx, dword [edi + 0x38]
mov dword [ebp - 0x14], eax
mov byte [ebx + 2], dl
mov eax, dword [edi + 0x38]
movzx ebx, byte [ebp - 0x10]
mov byte [eax + 3], bl
jmp 0x418ebb
mov edx, dword [edi + 0x38]
movzx ebx, byte [ebp - 0x10]
mov byte [edx], bl
mov eax, dword [edi + 0x38]
movzx edx, byte [ebp - 0xf]
mov byte [eax + 1], dl
mov esi, dword [edi + 0x38]
movzx eax, byte [ebp - 0xe]
mov dword [ebp - 0x14], eax
mov byte [esi + 2], al
mov esi, dword [edi + 0x38]
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x18], eax
mov byte [esi + 3], al
jmp 0x418ebb
mov eax, dword [edi + 0x38]
mov byte [eax + ebx - 2], 0xd
mov edx, dword [edi + 0x38]
mov byte [edx + ebx - 1], 0xa
jmp case.0x418cb8.5
mov eax, dword [edi + 0x38]
mov byte [eax + ebx], 0xd
inc ebx
jmp case.0x418cb8.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 eax, dword [edi + 0x38]
mov byte [eax + ebx], 0xa
jmp 0x419100
mov eax, dword [edi + 0x38]
movsx eax, byte [eax + 5]
jmp 0x4191fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov eax, 0x26
and byte [edi + 0x175], 0xf7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp dword [0x4f9460], 0
jne 0x419aee
jmp 0x419b1a
cmp dword [0x4f9460], 0
jne 0x419194
jmp 0x419b1a