Function at 0x41d070
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x4c]
test edx, edx
jne 0x41d08c
mov edx, dword [edi + 0x3c]
mov esi, dword [edi + 0x40]
test esi, esi
je 0x41d099
neg esi
add esi, edx
jmp 0x41d09e
mov esi, edx
sub esi, dword [edi + 0x38]
movsx ebx, byte [edi + 0x14c]
lea ecx, [esi + 4]
cmp ecx, dword [edi + 0xe4]
jbe 0x41d0de
cmp ebx, 1
je 0x41d0de
push 0x200
mov dword [ebp - 0x1c], edx
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041fff0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jne 0x41e0f2
movsx ebx, byte [edi + 0x14c]
dec ebx
cmp ebx, 7
ja case.0x41d0ef.3
mov ebx, dword [ebx*4 + 0x4d029c]
jmp ebx
cmp byte [edi + 0x14e], 1
je case.0x41d0ef.5
test byte [edi + 0x165], 0x40
jne case.0x41d0ef.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41d160
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x41d160
cmp dword [edi + 0x130], 1
je case.0x41d0ef.5
cmp dword [0x4fb140], 0
je 0x41d160
mov ecx, dword [edi + 0x138]
movzx edx, byte [edi + 0x168]
test edx, 0x80
je 0x41d14e
cmp ecx, 0xfffffffa
je case.0x41d0ef.5
cmp ecx, 1
je case.0x41d0ef.5
cmp ecx, 2
je case.0x41d0ef.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x41e196
mov byte [edx + esi], 0xd
mov edx, dword [edi + 0x40]
mov byte [edx + esi + 1], 0xa
add esi, 2
jmp case.0x41d0ef.5
cmp byte [edi + 0x14e], 1
je case.0x41d0ef.5
test byte [edi + 0x165], 0x40
jne case.0x41d0ef.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41d1ee
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x41d1ee
cmp dword [edi + 0x130], 1
je case.0x41d0ef.5
cmp dword [0x4fb140], 0
je 0x41d1ee
mov ecx, dword [edi + 0x138]
movzx edx, byte [edi + 0x168]
test edx, 0x80
je 0x41d1dc
cmp ecx, 0xfffffffa
je case.0x41d0ef.5
cmp ecx, 1
je case.0x41d0ef.5
cmp ecx, 2
je case.0x41d0ef.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x41e242
mov byte [edx + esi], 0xd
inc esi
jmp case.0x41d0ef.5
cmp byte [edi + 0x14e], 1
je case.0x41d0ef.5
test byte [edi + 0x165], 0x40
jne case.0x41d0ef.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41d272
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x41d272
cmp dword [edi + 0x130], 1
je case.0x41d0ef.5
cmp dword [0x4fb140], 0
je 0x41d272
mov ecx, dword [edi + 0x138]
movzx edx, byte [edi + 0x168]
test edx, 0x80
je 0x41d260
cmp ecx, 0xfffffffa
je case.0x41d0ef.5
cmp ecx, 1
je case.0x41d0ef.5
cmp ecx, 2
je case.0x41d0ef.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x41e1ad
mov byte [edx + esi], 0xa
inc esi
jmp case.0x41d0ef.5
mov ebx, dword [edi + 0x40]
add esi, 0xfffffffc
mov dword [ebp - 0x10], esi
mov edx, esi
and edx, 0xff
test ebx, ebx
je 0x41e1ba
test byte [edi + 0x165], 0x20
je 0x41d2df
mov eax, esi
shr eax, 0x18
mov dword [ebp - 0x1c], eax
mov byte [ebx], al
mov ebx, dword [edi + 0x40]
mov eax, esi
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x18], 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 0x41d30c
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 - 0x18], 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 - 0x1c], eax
mov byte [ebx + 3], al
test byte [edi + 0x165], 0x20
je 0x41d337
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
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 0x41d357
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [edi + 0x3c]
mov byte [esi], dl
mov edx, dword [edi + 0x3c]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x1c]
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.0x41d0ef.5
mov ecx, dword [edi + 0xf0]
cmp esi, ecx
jae 0x41d37c
sub ecx, esi
push ecx
push 0x20
push edx
call fcn.004aea20
add esp, 0xc
mov esi, dword [edi + 0xf0]
test byte [edi + 0x160], 4
je case.0x41d0ef.5
test byte [edi + 0x162], 0x40
je case.0x41d0ef.5
test byte [edi + 0x163], 8
je case.0x41d0ef.5
cmp byte [edi + 0x14e], 1
je case.0x41d0ef.5
test byte [edi + 0x165], 0x40
jne case.0x41d0ef.5
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41d3fe
movzx edx, byte [edx + 0x1e]
test edx, edx
je 0x41d3fe
cmp dword [edi + 0x130], 1
je case.0x41d0ef.5
cmp dword [0x4fb140], 0
je 0x41d3fe
mov ecx, dword [edi + 0x138]
movzx edx, byte [edi + 0x168]
test edx, 0x80
je 0x41d3f4
cmp ecx, 0xfffffffa
je case.0x41d0ef.5
cmp ecx, 1
je case.0x41d0ef.5
cmp ecx, 2
je case.0x41d0ef.5
mov edx, dword [edi + 0x40]
test edx, edx
je 0x41e22d
mov byte [edx + esi - 2], 0xd
mov edx, dword [edi + 0x40]
mov byte [edx + esi - 1], 0xa
jmp case.0x41d0ef.5
push 0x386
push str.for_put.c
push 2
push 8
call fcn.00404e90
add esp, 0x10
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x41d439
mov ebx, ecx
jmp 0x41d43c
mov ebx, dword [edi + 0x38]
movsx edx, byte [edi + 0x14e]
cmp edx, 2
jne 0x41d648
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41d4cb
movzx ecx, byte [edx + 0x1c]
test ecx, ecx
jne 0x41d463
movzx ecx, byte [edx + 0x1d]
test ecx, ecx
je 0x41d4c4
movzx ecx, byte [edx + 0x20]
test ecx, ecx
je 0x41d4a1
cmp dword [edi + 0x130], 1
je 0x41d4c4
cmp dword [0x4fb140], 0
je 0x41d4a1
mov eax, dword [edi + 0x138]
movzx ecx, byte [edi + 0x168]
test ecx, 0x80
je 0x41d497
cmp eax, 0xfffffffa
je 0x41d4c4
cmp eax, 1
je 0x41d4c4
cmp eax, 2
je 0x41d4c4
mov byte [ebp - 0x14], 0xa
lea edx, [ebp - 0x14]
mov eax, edi
mov ecx, 1
call fcn.0041cb2c
cmp eax, 0xffffffff
je 0x41e24f
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41d4cb
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x7c]
test byte [edi + 0x160], 4
je 0x41d4ea
test byte [edi + 0x162], 0x40
je 0x41d4ea
test byte [edi + 0x163], 8
jne 0x41d585
movsx ecx, byte [edi + 0x14c]
cmp ecx, 6
je 0x41d585
movzx eax, byte [edi + 0x165]
mov dword [ebp - 0x18], eax
cmp ecx, 8
je 0x41d57d
test byte [ebp - 0x18], 0x40
jne 0x41d57d
test edx, edx
je 0x41d558
movzx ecx, byte [edx + 0x1e]
test ecx, ecx
je 0x41d558
mov ecx, dword [edi + 0x130]
cmp ecx, 1
je 0x41d595
cmp dword [0x4fb140], 0
je 0x41d558
mov eax, dword [edi + 0x138]
mov dword [ebp - 0x1c], eax
movzx eax, byte [edi + 0x168]
test eax, 0x80
je 0x41d54c
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x41d595
cmp dword [ebp - 0x1c], 1
je 0x41d595
cmp dword [ebp - 0x1c], 2
je 0x41d595
mov edx, dword [edi + 0x40]
test edx, edx
je 0x41e26d
mov byte [edx + esi], 0xa
mov edx, dword [edi + 0x7c]
mov ecx, dword [edi + 0x130]
movzx eax, byte [edi + 0x165]
mov dword [ebp - 0x18], eax
inc esi
jmp 0x41d595
mov ecx, dword [edi + 0x130]
jmp 0x41d595
mov ecx, dword [edi + 0x130]
movzx eax, byte [edi + 0x165]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
and eax, 0xffffffbf
mov byte [edi + 0x165], al
test edx, edx
je 0x41d5fd
movzx eax, byte [edx + 0x1e]
test eax, eax
je 0x41d5fd
cmp ecx, 1
je 0x41dbd1
cmp dword [0x4fb140], 0
je 0x41d609
mov eax, dword [edi + 0x138]
movzx ecx, byte [edi + 0x168]
test ecx, 0x80
je 0x41d5dd
cmp eax, 0xfffffffa
je 0x41dbd1
cmp eax, 2
je 0x41dbd1
cmp eax, 1
je 0x41dbd1
cmp dword [0x4fb140], 0
jne 0x41d60f
jmp 0x41e0a4
cmp ecx, 1
je 0x41d637
cmp dword [0x4fb140], 0
je 0x41e0a4
mov eax, dword [edi + 0x138]
movzx ecx, byte [edi + 0x168]
test ecx, 0x80
je 0x41d629
cmp eax, 0xfffffffa
je 0x41d637
cmp eax, 2
je 0x41d637
cmp eax, 1
jne 0x41e0a4
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
cmp edx, 1
jne 0x41e004
lea edx, [esi + 1]
cmp esi, 5
je 0x41d65b
mov edx, esi
test ecx, ecx
je 0x41d664
lea ebx, [ecx + 4]
jmp 0x41d66a
mov ebx, dword [edi + 0x38]
add ebx, 4
lea esi, [edx - 4]
test ecx, ecx
je 0x41e279
movsx ecx, byte [ecx + 5]
cmp ecx, 0x31
ja case.0x41d689.1
mov ecx, dword [ecx*4 + 0x4d02c0]
jmp ecx
movzx eax, byte [edi + 0x160]
test al, 2
je 0x41d845
cmp dword [edi + 0x130], 1
je 0x41d6de
cmp dword [0x4fb140], 0
je 0x41d845
mov ecx, dword [edi + 0x138]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x168]
test ecx, 0x80
je 0x41d6ce
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x41d6de
cmp dword [ebp - 0x1c], 2
je 0x41d6de
cmp dword [ebp - 0x1c], 1
jne 0x41d845
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
inc ebx
test ecx, ecx
je 0x41d7eb
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x41d78f
and eax, 4
shr eax, 2
test eax, eax
je 0x41d713
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + 0x20]
test esi, esi
je 0x41d713
lea esi, [edx - 5]
jmp 0x41d766
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + 0x1c]
test esi, esi
jne 0x41d726
movzx esi, byte [ecx + 0x1d]
test esi, esi
je 0x41d762
test eax, eax
je 0x41d74e
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 0x41d75a
mov byte [ebx], 0xc
lea esi, [edx - 5]
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x41d766
jmp 0x41d783
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 0x41d783
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 0x41e0a4
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x41d7b0
test al, 4
je 0x41d7a5
mov byte [ebx + esi - 1], 0xd
jmp 0x41d815
inc ebx
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
jmp 0x41d815
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x41d7c6
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x41d7eb
test al, 4
je 0x41d80d
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 0x41d815
test al, 4
je 0x41d80d
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 0x41d815
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
inc ebx
test ecx, ecx
je 0x41d888
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x41d863
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x41d888
test al, 4
je 0x41d8aa
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 0x41d8b2
test al, 4
je 0x41d8aa
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 0x41d8b2
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
movzx eax, byte [edi + 0x160]
test al, 2
je 0x41da9f
cmp dword [edi + 0x130], 1
je 0x41d935
cmp dword [0x4fb140], 0
je 0x41da9f
mov ecx, dword [edi + 0x138]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x168]
test ecx, 0x80
je 0x41d925
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x41d935
cmp dword [ebp - 0x1c], 2
je 0x41d935
cmp dword [ebp - 0x1c], 1
jne 0x41da9f
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x41da4f
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x41d9e5
and eax, 4
shr eax, 2
test eax, eax
je 0x41d96a
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x41d96a
inc ebx
lea esi, [edx - 5]
jmp 0x41d9bc
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x41d980
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x41d9b6
test eax, eax
je 0x41d99e
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 0x41d9ae
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 0x41d9bc
jmp 0x41d9d9
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 0x41d9d9
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 0x41e0a4
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x41da09
test al, 4
je 0x41d9fc
inc ebx
mov byte [ebx + esi - 1], 0xd
jmp 0x41da6f
add ebx, 2
lea esi, [edx - 5]
mov byte [esi + ebx - 1], 0xd
jmp 0x41da6f
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x41da1f
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x41da4f
test al, 4
je 0x41da3c
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 0x41da6f
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], al
mov byte [ebx + esi], 0xd
lea esi, [edx - 3]
jmp 0x41da6f
test al, 4
je 0x41da66
mov byte [ebx + 1], 0xa
mov eax, 0xd
mov byte [ebx], al
mov byte [ebx + esi], al
lea esi, [edx - 3]
jmp 0x41da6f
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x41daec
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
jne 0x41dabc
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x1d]
test ecx, ecx
je 0x41daec
test al, 4
je 0x41dad9
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 0x41db0c
mov eax, 0xa
mov byte [ebx], al
mov byte [ebx + 1], al
mov byte [ebx + esi], 0xd
lea esi, [edx - 3]
jmp 0x41db0c
test al, 4
je 0x41db03
mov byte [ebx + 1], 0xa
mov eax, 0xd
mov byte [ebx], al
mov byte [ebx + esi], al
lea esi, [edx - 3]
jmp 0x41db0c
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
movzx eax, byte [edi + 0x160]
test al, 2
je 0x41dc32
cmp dword [edi + 0x130], 1
je 0x41db8f
cmp dword [0x4fb140], 0
je 0x41dc32
mov ecx, dword [edi + 0x138]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x168]
test ecx, 0x80
je 0x41db7f
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x41db8f
cmp dword [ebp - 0x1c], 2
je 0x41db8f
cmp dword [ebp - 0x1c], 1
jne 0x41dc32
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x41dbda
movzx ecx, byte [ecx + 0x1e]
test ecx, ecx
je 0x41dbda
test al, 4
je 0x41dbb6
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x41dbb6
inc ebx
lea esi, [edx - 5]
jmp 0x41dbbc
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 0x41dbd1
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x20], 1
jmp 0x41e0a4
test al, 4
je 0x41dbf7
cmp dword [ebp - 0x1c], 0
je 0x41dbf7
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x20]
test ecx, ecx
je 0x41dbf7
inc ebx
mov byte [ebx + esi - 1], 0xd
jmp 0x41dc02
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
test byte [edi + 0x160], 2
je 0x41dd62
cmp dword [edi + 0x130], 1
je 0x41dcb7
cmp dword [0x4fb140], 0
je 0x41dd62
mov ecx, dword [edi + 0x138]
movzx eax, byte [edi + 0x168]
test eax, 0x80
je 0x41dca9
cmp ecx, 0xfffffffa
je 0x41dcb7
cmp ecx, 2
je 0x41dcb7
cmp ecx, 1
jne 0x41dd62
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41dd33
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x41dd07
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x41dcd6
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x41dce6
inc ebx
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
test eax, eax
jne 0x41dcec
jmp 0x41dcfe
add ebx, 2
lea esi, [edx - 6]
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41dcfe
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x41e0a4
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x41dd17
add ebx, 2
lea esi, [edx - 6]
jmp 0x41dd3d
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x41dd27
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x41dd33
inc ebx
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
jmp 0x41dd39
add ebx, 2
lea esi, [edx - 6]
test eax, eax
je 0x41dd44
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 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41dd85
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x41dd79
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x41dd85
inc ebx
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
jmp 0x41dd8b
add ebx, 2
lea esi, [edx - 6]
test eax, eax
je 0x41dd96
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 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
test byte [edi + 0x160], 2
je 0x41de59
cmp dword [edi + 0x130], 1
je 0x41ddfa
cmp dword [0x4fb140], 0
je 0x41de59
mov ecx, dword [edi + 0x138]
movzx eax, byte [edi + 0x168]
test eax, 0x80
je 0x41ddf0
cmp ecx, 0xfffffffa
je 0x41ddfa
cmp ecx, 2
je 0x41ddfa
cmp ecx, 1
jne 0x41de59
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x41de2a
movzx eax, byte [ecx + 0x1e]
test eax, eax
je 0x41de2a
mov byte [ecx + 0x1c], 0
add ebx, 2
lea esi, [edx - 6]
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41de21
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
mov byte [edx + 0x20], 1
jmp 0x41e0a4
add ebx, 2
lea esi, [edx - 6]
test ecx, ecx
je 0x41de3b
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 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
add ebx, 2
lea esi, [edx - 6]
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41de6d
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 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
movzx ecx, byte [edi + 0x160]
mov dword [ebp - 0x1c], ecx
test cl, 2
je 0x41dfa9
cmp dword [edi + 0x130], 1
je 0x41dedc
cmp dword [0x4fb140], 0
je 0x41dfa9
mov eax, dword [edi + 0x138]
movzx ecx, byte [edi + 0x168]
test ecx, 0x80
je 0x41dece
cmp eax, 0xfffffffa
je 0x41dedc
cmp eax, 2
je 0x41dedc
cmp eax, 1
jne 0x41dfa9
mov eax, dword [edi + 0x7c]
inc ebx
test eax, eax
je 0x41df70
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x41df41
test byte [ebp - 0x1c], 4
je 0x41df03
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x41df03
lea esi, [edx - 5]
jmp 0x41df26
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x41df13
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x41df22
mov byte [ebx], 0xa
mov eax, dword [edi + 0x7c]
lea esi, [edx - 5]
test eax, eax
jne 0x41df26
jmp 0x41df38
inc ebx
lea esi, [edx - 6]
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41df38
mov byte [eax + 0x1d], 0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x20], 1
jmp 0x41e0a4
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x41df56
test byte [ebp - 0x1c], 4
je 0x41df70
mov byte [ebx + esi - 1], 0xd
jmp 0x41df79
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x41df66
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x41df70
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
jmp 0x41df79
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
mov eax, dword [edi + 0x7c]
inc ebx
test eax, eax
je 0x41dfcb
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x41dfc1
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x41dfcb
mov byte [ebx], 0xa
mov byte [ebx + esi - 1], 0xd
jmp 0x41dfd4
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 0x41e0a4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x41e0a4
mov byte [edx + 0x20], 0
jmp 0x41e0a4
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41e2c8
mov ecx, dword [edi + 0x130]
movzx edx, byte [eax + 0x1e]
test edx, edx
je 0x41e06a
cmp ecx, 1
je 0x41dcfe
cmp dword [0x4fb140], 0
je 0x41e076
mov ecx, dword [edi + 0x138]
movzx edx, byte [edi + 0x168]
test edx, 0x80
je 0x41e04d
cmp ecx, 0xfffffffa
je 0x41dcfe
cmp ecx, 2
je 0x41dcfe
cmp ecx, 1
je 0x41dcfe
cmp dword [0x4fb140], 0
jne 0x41e078
jmp 0x41e0a4
cmp ecx, 1
je 0x41e09c
cmp dword [0x4fb140], 0
je 0x41e0a4
mov ecx, dword [edi + 0x138]
movzx edx, byte [edi + 0x168]
test edx, 0x80
je 0x41e092
cmp ecx, 0xfffffffa
je 0x41e09c
cmp ecx, 2
je 0x41e09c
cmp ecx, 1
jne 0x41e0a4
test eax, eax
je 0x41e0a4
mov byte [eax + 0x20], 0
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.0041cb2c
and byte [edi + 0x164], 0xbf
cmp eax, 0xffffffff
je 0x41e2aa
test byte [edi + 0x165], 8
je 0x41e0e3
push dword [edi + 0xdc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41e285
and byte [edi + 0x165], 0xf7
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.0041fff0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x41d0d7
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41e177
test byte [eax + 0x44], 2
je 0x41e14d
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 0x41e13b
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 + 0x164]
and edx, 7
mov eax, 0x42
push eax
push eax
push edx
push 0xffffffffffffffff
push edi
call fcn.004243b0
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.00402df0
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.0x41d0ef.5
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xa
inc esi
jmp case.0x41d0ef.5
test byte [edi + 0x165], 0x20
je 0x41e1f8
movzx edx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x1c], edx
mov byte [esi], dl
mov ebx, dword [edi + 0x38]
movzx edx, byte [ebp - 0xf]
mov dword [ebp - 0x18], 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 0x41d30c
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 - 0x18], ebx
mov byte [eax + 2], bl
movzx eax, byte [ebp - 0xd]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x1c], eax
mov byte [esi + 3], al
jmp 0x41d30c
mov edx, dword [edi + 0x38]
mov byte [edx + esi - 2], 0xd
mov ecx, dword [edi + 0x38]
mov byte [ecx + esi - 1], 0xa
jmp case.0x41d0ef.5
mov edx, dword [edi + 0x38]
mov byte [edx + esi], 0xd
inc esi
jmp case.0x41d0ef.5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov dword [edi + 0xe0], 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 0x41d567
mov ecx, dword [edi + 0x38]
movsx ecx, byte [ecx + 5]
jmp 0x41d679
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
and byte [edi + 0x165], 0xf7
mov dword [edi + 0xe0], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov dword [edi + 0xe0], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x130]
jmp 0x41e06a