Function at 0x46bfe0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x5c]
test edx, edx
jne 0x46bff6
mov edx, dword [edi + 0x4c]
mov ebx, dword [edi + 0x50]
test ebx, ebx
je 0x46c003
neg ebx
add ebx, edx
jmp 0x46c008
mov ebx, edx
sub ebx, dword [edi + 0x48]
movsx ecx, byte [edi + 0x17a]
lea esi, [ebx + 4]
cmp esi, dword [edi + 0x104]
jbe 0x46c042
cmp ecx, 1
je 0x46c042
push 0x200
push edi
mov dword [ebp - 0x1c], edx
call fcn.0046f520
mov edx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jne 0x46d1bc
movsx ecx, byte [edi + 0x17a]
cmp ecx, 8
ja 0x46c211
movzx eax, word [ecx*2 + 0x4cdc50]
add eax, 0x46c05a
jmp eax
push 0x462
push str.for_put.c
push 2
push 8
call fcn.00464d00
add esp, 0x10
jmp 0x46c3bb
movsx ecx, byte [edi + 0x17c]
mov edx, dword [edi + 0x50]
test edx, edx
je 0x46c3cd
mov esi, edx
jmp 0x46c3d0
mov esi, dword [edi + 0x48]
cmp ecx, 2
jne 0x46c5d3
mov eax, dword [edi + 0x90]
test eax, eax
je 0x46c45a
cmp byte [eax + 0x1c], 0
jne 0x46c3ef
cmp byte [eax + 0x1d], 0
je 0x46c450
cmp byte [eax + 0x20], 0
je 0x46c42b
cmp dword [edi + 0x154], 1
je 0x46c450
cmp dword [0x508060], 0
je 0x46c42b
movzx ecx, byte [edi + 0x194]
mov edx, dword [edi + 0x15c]
test ecx, 0x80
je 0x46c421
cmp edx, 0xfffffffa
je 0x46c450
cmp edx, 1
je 0x46c450
cmp edx, 2
je 0x46c450
mov eax, edi
lea edx, [ebp - 0x14]
mov ecx, 1
mov byte [edx], 0xa
call fcn.0046b98c
cmp eax, 0xffffffff
je 0x46cde0
mov eax, dword [edi + 0x90]
test eax, eax
je 0x46c45a
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x90]
test byte [edi + 0x18c], 4
je 0x46c479
test byte [edi + 0x18e], 0x40
je 0x46c479
test byte [edi + 0x18f], 8
jne 0x46c528
movsx edx, byte [edi + 0x17a]
cmp edx, 5
je 0x46c528
movzx ecx, byte [edi + 0x191]
mov dword [ebp - 0x18], ecx
cmp edx, 7
je 0x46c520
cmp edx, 6
je 0x46c520
cmp edx, 8
je 0x46c520
test byte [ebp - 0x18], 0x40
jne 0x46c520
test eax, eax
je 0x46c4f8
cmp byte [eax + 0x1e], 0
je 0x46c4f8
mov edx, dword [edi + 0x154]
cmp edx, 1
je 0x46c538
cmp dword [0x508060], 0
je 0x46c4f8
mov ecx, dword [edi + 0x15c]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x194]
test ecx, 0x80
je 0x46c4ec
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x46c538
cmp dword [ebp - 0x1c], 1
je 0x46c538
cmp dword [ebp - 0x1c], 2
je 0x46c538
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x46cdf9
mov byte [ecx + ebx], 0xa
movzx ecx, byte [edi + 0x191]
inc ebx
mov edx, dword [edi + 0x154]
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x18], ecx
jmp 0x46c538
mov edx, dword [edi + 0x154]
jmp 0x46c538
movzx ecx, byte [edi + 0x191]
mov edx, dword [edi + 0x154]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
and ecx, 0xffffffbf
mov byte [edi + 0x191], cl
test eax, eax
je 0x46c58c
cmp byte [eax + 0x1e], 0
je 0x46c58c
cmp edx, 1
je 0x46c583
cmp dword [0x508060], 0
je 0x46c58c
mov ecx, dword [edi + 0x15c]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edi + 0x194]
test ecx, 0x80
je 0x46c57a
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x46c583
mov ecx, dword [ebp - 0x1c]
dec ecx
cmp ecx, 1
ja 0x46c58c
mov byte [eax + 0x20], 1
jmp 0x46ccb8
cmp edx, 1
je 0x46c5c2
cmp dword [0x508060], 0
je 0x46ccb8
movzx ecx, byte [edi + 0x194]
mov edx, dword [edi + 0x15c]
test ecx, 0x80
je 0x46c5b8
cmp edx, 0xfffffffa
je 0x46c5c2
dec edx
cmp edx, 1
ja 0x46ccb8
test eax, eax
je 0x46ccb8
mov byte [eax + 0x20], 0
jmp 0x46ccb8
cmp ecx, 1
jne 0x46cc25
cmp ebx, 5
mov eax, ebx
jne 0x46c5e8
mov eax, 6
lea ebx, [eax - 4]
test edx, edx
je 0x46d189
movsx ecx, byte [edx + 5]
lea esi, [edx + 4]
cmp ecx, 0x2b
je 0x46d053
cmp ecx, 0x30
je 0x46ce1b
cmp ecx, 0x31
je 0x46c9e9
cmp ecx, 0x24
jne 0x46c771
test byte [edi + 0x18c], 2
je 0x46c714
cmp dword [edi + 0x154], 1
je 0x46c665
cmp dword [0x508060], 0
je 0x46c714
movzx ecx, byte [edi + 0x194]
mov ebx, dword [edi + 0x15c]
test ecx, 0x80
je 0x46c65b
cmp ebx, 0xfffffffa
je 0x46c665
dec ebx
cmp ebx, 1
ja 0x46c714
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ce05
cmp byte [ecx + 0x1e], 0
je 0x46c6bf
cmp byte [ecx + 0x1c], 0
jne 0x46c685
cmp byte [ecx + 0x1d], 0
je 0x46c698
inc esi
lea ebx, [eax - 5]
mov byte [esi], 0xa
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46c69e
jmp 0x46c6b6
add esi, 2
lea ebx, [eax - 6]
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46c6b6
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x20], 1
jmp 0x46ccb8
cmp byte [ecx + 0x20], 0
jne 0x46c6e4
cmp byte [ecx + 0x1c], 0
jne 0x46c6d1
cmp byte [ecx + 0x1d], 0
je 0x46c6e4
inc esi
lea ebx, [eax - 5]
mov byte [esi], 0xa
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46c6ea
jmp 0x46c6f4
add esi, 2
lea ebx, [eax - 6]
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1d], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ce10
cmp byte [ecx + 0x1c], 0
jne 0x46c72e
cmp byte [ecx + 0x1d], 0
je 0x46c741
inc esi
lea ebx, [eax - 5]
mov byte [esi], 0xa
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46c747
jmp 0x46c751
add esi, 2
lea ebx, [eax - 6]
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1d], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
test ecx, ecx
jne 0x46c865
test byte [edi + 0x18c], 2
je 0x46c82b
cmp dword [edi + 0x154], 1
je 0x46c7bc
cmp dword [0x508060], 0
je 0x46c82b
movzx ecx, byte [edi + 0x194]
mov ebx, dword [edi + 0x15c]
test ecx, 0x80
je 0x46c7b6
cmp ebx, 0xfffffffa
je 0x46c7bc
dec ebx
cmp ebx, 1
ja 0x46c82b
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46c7cc
movzx ecx, byte [edx + 0x1e]
jmp 0x46c7ce
xor ecx, ecx
add esi, 2
lea ebx, [eax - 6]
test ecx, ecx
je 0x46c7fd
test edx, edx
je 0x46c7f4
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46c7f4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x90]
mov byte [edx + 0x20], 1
jmp 0x46ccb8
test edx, edx
je 0x46c80b
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x90]
mov byte [edx + 0x1d], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
mov ecx, dword [edi + 0x90]
add esi, 2
lea ebx, [eax - 6]
test ecx, ecx
je 0x46c845
mov byte [ecx + 0x1c], 0
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1d], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
movzx ecx, byte [edi + 0x18c]
test cl, 2
je 0x46c987
cmp dword [edi + 0x154], 1
je 0x46c8b6
cmp dword [0x508060], 0
je 0x46c987
mov edx, dword [edi + 0x15c]
mov dword [ebp - 0x1c], edx
movzx edx, byte [edi + 0x194]
test edx, 0x80
je 0x46c8a9
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x46c8b6
mov edx, dword [ebp - 0x1c]
dec edx
cmp edx, 1
ja 0x46c987
mov edx, dword [edi + 0x90]
inc esi
test edx, edx
je 0x46c946
cmp byte [edx + 0x1e], 0
je 0x46c91e
test cl, 4
je 0x46c8db
cmp byte [edx + 0x20], 0
je 0x46c8db
lea ebx, [eax - 5]
jmp 0x46c8fd
cmp byte [edx + 0x1c], 0
jne 0x46c8e7
cmp byte [edx + 0x1d], 0
je 0x46c8f9
mov byte [esi], 0xa
lea ebx, [eax - 5]
mov edx, dword [edi + 0x90]
test edx, edx
jne 0x46c8fd
jmp 0x46c915
inc esi
lea ebx, [eax - 6]
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46c915
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x90]
mov byte [edx + 0x20], 1
jmp 0x46ccb8
cmp byte [edx + 0x20], 0
je 0x46c930
test cl, 4
je 0x46c946
mov byte [esi + ebx - 1], 0xd
jmp 0x46c94f
cmp byte [edx + 0x1c], 0
jne 0x46c93c
cmp byte [edx + 0x1d], 0
je 0x46c946
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
jmp 0x46c94f
inc esi
lea ebx, [eax - 5]
mov byte [ebx + esi - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
mov ecx, dword [edi + 0x90]
inc esi
test ecx, ecx
je 0x46c9a8
cmp byte [ecx + 0x1c], 0
jne 0x46c99e
cmp byte [ecx + 0x1d], 0
je 0x46c9a8
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
jmp 0x46c9b1
inc esi
lea ebx, [eax - 5]
mov byte [ebx + esi - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
movzx ecx, byte [edi + 0x18c]
test cl, 2
je 0x46cb85
cmp dword [edi + 0x154], 1
je 0x46ca3a
cmp dword [0x508060], 0
je 0x46cb85
mov edx, dword [edi + 0x15c]
mov dword [ebp - 0x1c], edx
movzx edx, byte [edi + 0x194]
test edx, 0x80
je 0x46ca2d
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x46ca3a
mov edx, dword [ebp - 0x1c]
dec edx
cmp edx, 1
ja 0x46cb85
mov edx, dword [edi + 0x90]
inc esi
test edx, edx
je 0x46cb22
cmp byte [edx + 0x1e], 0
je 0x46cad3
and ecx, 4
shr ecx, 2
test ecx, ecx
je 0x46ca68
cmp byte [edx + 0x20], 0
je 0x46ca68
lea ebx, [eax - 5]
jmp 0x46cab2
cmp byte [edx + 0x1c], 0
jne 0x46ca74
cmp byte [edx + 0x1d], 0
je 0x46caae
test ecx, ecx
je 0x46ca9c
add esi, 0xfffffffc
mov ecx, 0xd
lea ebx, [eax - 1]
mov byte [esi], 0xa
mov byte [esi + 1], 0xc
mov byte [esi + 2], cl
mov byte [esi + 3], 0x20
mov byte [esi + 4], cl
mov edx, dword [edi + 0x90]
jmp 0x46caa8
mov byte [esi], 0xc
lea ebx, [eax - 5]
mov edx, dword [edi + 0x90]
test edx, edx
jne 0x46cab2
jmp 0x46caca
inc esi
lea ebx, [eax - 6]
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46caca
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x90]
mov byte [edx + 0x20], 1
jmp 0x46ccb8
cmp byte [edx + 0x20], 0
je 0x46caf0
test cl, 4
je 0x46cae5
mov byte [esi + ebx - 1], 0xd
jmp 0x46cb4d
inc esi
lea ebx, [eax - 5]
mov byte [ebx + esi - 1], 0xd
jmp 0x46cb4d
cmp byte [edx + 0x1c], 0
jne 0x46cafc
cmp byte [edx + 0x1d], 0
je 0x46cb22
test cl, 4
je 0x46cb45
add esi, 0xfffffffc
mov ecx, 0xd
mov byte [esi], 0xa
mov byte [esi + 1], 0xc
mov byte [esi + 2], cl
mov byte [esi + 3], 0x20
mov byte [esi + 4], cl
mov byte [esi + ebx + 3], cl
mov ebx, eax
jmp 0x46cb4d
test cl, 4
je 0x46cb45
add esi, 0xfffffffd
mov ecx, 0xd
mov byte [esi], 0xc
mov byte [esi + 1], cl
mov byte [esi + 2], 0x20
mov byte [esi + 3], cl
mov byte [esi + ebx + 2], cl
lea ebx, [eax - 1]
jmp 0x46cb4d
mov byte [esi], 0xc
mov byte [esi + ebx - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
mov edx, dword [edi + 0x90]
inc esi
test edx, edx
je 0x46cbc2
cmp byte [edx + 0x1c], 0
jne 0x46cb9c
cmp byte [edx + 0x1d], 0
je 0x46cbc2
test cl, 4
je 0x46cbe5
add esi, 0xfffffffc
mov ecx, 0xd
mov byte [esi], 0xa
mov byte [esi + 1], 0xc
mov byte [esi + 2], cl
mov byte [esi + 3], 0x20
mov byte [esi + 4], cl
mov byte [esi + ebx + 3], cl
mov ebx, eax
jmp 0x46cbed
test cl, 4
je 0x46cbe5
add esi, 0xfffffffd
mov ecx, 0xd
mov byte [esi], 0xc
mov byte [esi + 1], cl
mov byte [esi + 2], 0x20
mov byte [esi + 3], cl
mov byte [esi + ebx + 2], cl
lea ebx, [eax - 1]
jmp 0x46cbed
mov byte [esi], 0xc
mov byte [esi + ebx - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
mov ecx, dword [edi + 0x90]
mov eax, dword [edi + 0x154]
test ecx, ecx
je 0x46d1ae
cmp byte [ecx + 0x1e], 0
je 0x46cc83
cmp eax, 1
je 0x46c6b6
cmp dword [0x508060], 0
je 0x46cc8f
movzx eax, byte [edi + 0x194]
mov edx, dword [edi + 0x15c]
test eax, 0x80
je 0x46cc6e
cmp edx, 0xfffffffa
je 0x46c6b6
dec edx
cmp edx, 1
jbe 0x46c6b6
cmp dword [0x508060], 0
jne 0x46cc91
jmp 0x46ccb8
cmp eax, 1
je 0x46ccb4
cmp dword [0x508060], 0
je 0x46ccb8
movzx eax, byte [edi + 0x194]
mov edx, dword [edi + 0x15c]
test eax, 0x80
je 0x46ccaa
cmp edx, 0xfffffffa
je 0x46ccb0
dec edx
cmp edx, 1
ja 0x46ccb8
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x20], 0
mov eax, edi
mov edx, esi
mov ecx, ebx
call fcn.0046b98c
and byte [edi + 0x190], 0xbf
cmp eax, 0xffffffff
je 0x46cde0
test byte [edi + 0x191], 8
je 0x46cd01
push dword [edi + 0xfc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x46d198
xor eax, eax
and byte [edi + 0x191], 0xf7
test eax, eax
jne 0x46d229
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x100], eax
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x48]
mov byte [ecx + ebx], 0xa
jmp 0x46c507
add esi, 2
lea ebx, [eax - 6]
jmp 0x46c6f4
add esi, 2
lea ebx, [eax - 6]
jmp 0x46c751
movzx ecx, byte [edi + 0x18c]
test cl, 2
je 0x46cfb3
cmp dword [edi + 0x154], 1
je 0x46ce6c
cmp dword [0x508060], 0
je 0x46cfb3
mov edx, dword [edi + 0x15c]
mov dword [ebp - 0x1c], edx
movzx edx, byte [edi + 0x194]
test edx, 0x80
je 0x46ce5f
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x46ce6c
mov edx, dword [ebp - 0x1c]
dec edx
cmp edx, 1
ja 0x46cfb3
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46cf5a
cmp byte [edx + 0x1e], 0
je 0x46cefd
and ecx, 4
shr ecx, 2
test ecx, ecx
je 0x46ce96
cmp byte [edx + 0x20], 0
je 0x46ce96
inc esi
lea ebx, [eax - 5]
jmp 0x46cedc
cmp byte [edx + 0x1c], 0
jne 0x46cea2
cmp byte [edx + 0x1d], 0
je 0x46ced6
test ecx, ecx
je 0x46cec0
dec esi
mov ecx, 0xa
lea ebx, [eax - 3]
mov byte [esi], cl
mov byte [esi + 1], 0xd
mov byte [esi + 2], cl
mov edx, dword [edi + 0x90]
jmp 0x46ced0
mov ecx, 0xa
mov byte [esi], cl
mov byte [esi + 1], cl
mov edx, dword [edi + 0x90]
test edx, edx
jne 0x46cedc
jmp 0x46cef4
add esi, 2
lea ebx, [eax - 6]
mov byte [edx + 0x1c], 0
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46cef4
mov byte [edx + 0x1d], 0
mov edx, dword [edi + 0x90]
mov byte [edx + 0x20], 1
jmp 0x46ccb8
cmp byte [edx + 0x20], 0
je 0x46cf1d
test cl, 4
je 0x46cf10
inc esi
mov byte [esi + ebx - 1], 0xd
jmp 0x46cf7b
add esi, 2
lea ebx, [eax - 5]
mov byte [ebx + esi - 1], 0xd
jmp 0x46cf7b
cmp byte [edx + 0x1c], 0
jne 0x46cf29
cmp byte [edx + 0x1d], 0
je 0x46cf5a
test cl, 4
je 0x46cf47
dec esi
mov ecx, 0xa
mov byte [esi], cl
mov byte [esi + 1], 0xd
mov byte [esi + 2], cl
mov byte [esi + ebx + 1], 0xd
lea ebx, [eax - 2]
jmp 0x46cf7b
mov ecx, 0xa
mov byte [esi], cl
mov byte [esi + 1], cl
mov byte [esi + ebx], 0xd
lea ebx, [eax - 3]
jmp 0x46cf7b
test cl, 4
je 0x46cf72
mov ecx, 0xd
mov byte [esi], cl
mov byte [esi + 1], 0xa
mov byte [esi + ebx], cl
lea ebx, [eax - 3]
jmp 0x46cf7b
inc esi
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46cffa
cmp byte [edx + 0x1c], 0
jne 0x46cfc9
cmp byte [edx + 0x1d], 0
je 0x46cffa
test cl, 4
je 0x46cfe7
dec esi
mov ecx, 0xa
mov byte [esi], cl
mov byte [esi + 1], 0xd
mov byte [esi + 2], cl
mov byte [esi + ebx + 1], 0xd
lea ebx, [eax - 2]
jmp 0x46d01b
mov ecx, 0xa
mov byte [esi], cl
mov byte [esi + 1], cl
mov byte [esi + ebx], 0xd
lea ebx, [eax - 3]
jmp 0x46d01b
test cl, 4
je 0x46d012
mov ecx, 0xd
mov byte [esi], cl
mov byte [esi + 1], 0xa
mov byte [esi + ebx], cl
lea ebx, [eax - 3]
jmp 0x46d01b
inc esi
mov byte [esi], 0xa
mov byte [esi + ebx - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
movzx ecx, byte [edi + 0x18c]
test cl, 2
je 0x46d146
cmp dword [edi + 0x154], 1
je 0x46d0a4
cmp dword [0x508060], 0
je 0x46d146
mov edx, dword [edi + 0x15c]
mov dword [ebp - 0x1c], edx
movzx edx, byte [edi + 0x194]
test edx, 0x80
je 0x46d097
cmp dword [ebp - 0x1c], 0xfffffffa
je 0x46d0a4
mov edx, dword [ebp - 0x1c]
dec edx
cmp edx, 1
ja 0x46d146
mov edx, dword [edi + 0x90]
test edx, edx
je 0x46d0ec
cmp byte [edx + 0x1e], 0
je 0x46d0ec
test cl, 4
je 0x46d0c5
cmp byte [edx + 0x20], 0
je 0x46d0c5
inc esi
lea ebx, [eax - 5]
jmp 0x46d0cb
add esi, 2
lea ebx, [eax - 6]
mov byte [edx + 0x1c], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46d0e3
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x20], 1
jmp 0x46ccb8
test cl, 4
je 0x46d103
test edx, edx
je 0x46d103
cmp byte [edx + 0x20], 0
je 0x46d103
inc esi
mov byte [esi + ebx - 1], 0xd
jmp 0x46d10e
add esi, 2
lea ebx, [eax - 5]
mov byte [ebx + esi - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
add esi, 2
lea ebx, [eax - 5]
mov byte [ebx + esi - 1], 0xd
mov ecx, dword [edi + 0x90]
mov byte [ecx + 0x1c], 1
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x10], edi
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x46ccb8
mov byte [ecx + 0x1d], 0
mov ecx, dword [edi + 0x90]
test ecx, ecx
jne 0x46ccb4
jmp 0x46ccb8
mov ecx, dword [edi + 0x48]
lea esi, [ecx + 4]
movsx ecx, byte [ecx + 5]
jmp 0x46c5fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x100], eax
mov eax, 0x26
jmp 0x46ccf2
cmp eax, 1
je 0x46ccb8
jmp 0x46cc78
push 4
push edi
mov dword [ebp - 0x1c], edx
call fcn.0046f520
mov edx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x46c03b
mov edx, dword [edi + 0x20]
test edx, edx
je 0x46d231
test byte [edx + 0x44], 2
je 0x46d20c
mov ecx, 0x42
mov dword [edx + 0x38], ecx
mov edx, dword [edi + 0x20]
mov dword [edx + 0x3c], ecx
mov edx, dword [edi + 0x78]
test edx, edx
je 0x46d1ff
xor ecx, ecx
mov dword [edx + 4], ecx
mov dword [edi + 0x78], ecx
mov eax, 0x42
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, 0x42
push edx
movzx ecx, byte [edi + 0x190]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push edi
call fcn.0046e340
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push edi
mov eax, 0x42
push eax
push eax
push 1
call fcn.00463630
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret