Function at 0x46e6af
Capabilities:
Clear file content
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x60], ecx
push ecx
lea ecx, [ebp - 0x80]
call fcn.0044646b
mov esi, dword [ebp + 8]
xor edi, edi
mov di, word [esi]
xor ebx, ebx
mov byte [ebp - 0x41], bl
mov eax, edi
call fcn.0040f4c7
test al, al
jne 0x46e7f1
push 4
push esi
push str._UNI
call fcn.0043f0c4
add esp, 0xc
test al, al
jne 0x46e71f
push 5
push esi
push str._UNIB
call fcn.0043f0c4
add esp, 0xc
test al, al
jne 0x46e75a
push 8
push esi
push str._UNICODE
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x46e746
mov dword [ebp - 8], 0x4b0
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
mov byte [ebp - 0x24], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x44], bl
mov byte [ebp - 0x39], bl
mov byte [ebp - 0x43], bl
jmp 0x46e90b
push 9
push esi
push str._UNICODEB
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x46e763
mov dword [ebp - 8], 0x4b1
jmp 0x46e726
push 5
push esi
push str._UTF8
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x46e780
mov dword [ebp - 8], 0xfde9
jmp 0x46e726
push 5
push esi
push str._UTF7
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x46e79d
mov dword [ebp - 8], 0xfde8
jmp 0x46e726
push 4
push esi
push str._GBK
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x46e7bd
mov dword [ebp - 8], 0x3a8
jmp 0x46e726
push 5
push esi
push str._BIG5
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x46e7dd
mov dword [ebp - 8], 0x3b6
jmp 0x46e726
push 5
push esi
push str._ANSI
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x46e7f9
mov dword [ebp - 8], ebx
jmp 0x46e726
cmp di, 0x2d
jne 0x46e829
xor eax, eax
lea ecx, [esi + 2]
mov ax, word [ecx]
push eax
call fcn.00443c3d
add esp, 4
test al, al
je 0x46e829
push ecx
mov dword [ebp + 8], ecx
call fcn.00444d77
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jge 0x46e726
xor ebx, ebx
inc ebx
jmp 0x46ee17
push 4
lea eax, [ebp + 8]
push eax
push str.fix
call fcn.004460ea
add esp, 0xc
test al, al
je 0x46e851
mov byte [ebp - 0x24], 2
jmp 0x46e90c
push 4
lea eax, [ebp + 8]
push eax
push str._nl
call fcn.004460ea
add esp, 0xc
test al, al
je 0x46e871
mov byte [ebp - 0xd], 1
jmp 0x46e90c
push 2
lea eax, [ebp + 8]
push eax
push 0x4c73a8
call fcn.004460ea
add esp, 0xc
test al, al
je 0x46e88e
mov byte [ebp - 0x19], 1
jmp 0x46e90c
push 3
lea eax, [ebp + 8]
push eax
push 0x4c73a4
call fcn.004460ea
add esp, 0xc
test al, al
je 0x46e8ab
mov byte [ebp - 0x44], 1
jmp 0x46e90c
push 2
lea eax, [ebp + 8]
push eax
push 0x4c1330
call fcn.004460ea
add esp, 0xc
test al, al
je 0x46e8c8
mov byte [ebp - 0x39], 1
jmp 0x46e90c
push 7
lea eax, [ebp + 8]
push eax
push str.sparse
call fcn.004460ea
add esp, 0xc
test al, al
je 0x46e8e5
mov byte [ebp - 0x41], 1
jmp 0x46e90c
push 6
lea eax, [ebp + 8]
push eax
push str.nobom
call fcn.004460ea
add esp, 0xc
test al, al
je 0x46e902
mov byte [ebp - 0x43], 1
jmp 0x46e90c
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
je 0x46e831
mov esi, 0x4bca2c
push esi
lea ecx, [ebp - 0x64]
call fcn.0044cf2d
push 0x4c7394
lea ecx, [ebp - 0x68]
call fcn.0044cf2d
push 1
push 0x2c
pop edi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0045708a
push ebx
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.00446f11
push dword [ebp - 0x64]
call fcn.00412ce4
add esp, 0x10
cmp word [eax], bx
mov dword [ebp - 0x40], eax
jne 0x46e974
mov ebx, 0x80070057
jmp 0x46ee07
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x46e9b3
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043dcd9
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
je 0x46e9b3
push 1
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.0045708a
push ebx
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.00446f11
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], di
mov dword [ebp - 0x28], esi
jne 0x46e9c1
add eax, 2
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x68]
cmp word [eax], 0x24
mov dword [ebp + 8], eax
mov byte [ebp - 0x42], bl
mov byte [ebp - 1], bl
jne 0x46e9de
mov cl, byte [eax]
add eax, 2
mov byte [ebp - 0x42], cl
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043dcd9
mov eax, dword [ebp + 8]
pop ecx
mov cx, word [eax]
cmp cx, 0x2b
je 0x46e9fa
cmp cx, 0x2d
jne 0x46ea04
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp - 1], cl
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043dcd9
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
call fcn.00443c3d
add esp, 8
test al, al
je 0x46ea45
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004470c7
add esp, 0xc
cmp dword [ebp - 0x14], ebx
jg 0x46ea45
jl 0x46ee07
cmp dword [ebp - 0x18], ebx
jb 0x46ee07
lea ecx, [ebp - 0x20]
call fcn.004441a1
cmp byte [ebp - 0x44], bl
mov esi, 0x4d8d1c
je 0x46eaa3
mov edi, dword [ebp - 0x28]
cmp word [edi], 0x26
je 0x46ea69
mov eax, dword [ebp - 0x60]
test byte [eax + 9], 0xf
je 0x46ea95
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x60]
push 0xffffffffffffffff
push ebx
push edi
call fcn.00414c87
cmp eax, ebx
je 0x46ea8c
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0x20]
call fcn.004442c5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x46eac7
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0044c85e
pop ecx
pop ecx
jmp 0x46eac7
cmp byte [ebp - 0x42], bl
je 0x46eabc
mov ecx, dword [ebp - 0x60]
push 1
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call fcn.00454cef
jmp 0x46eac7
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.0044cf95
push dword [ebp - 0x40]
xor esi, esi
push 0x4bd960
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x28], ebx
mov byte [ebp + 0xb], bl
call fcn.0043f15a
test al, al
pop ecx
pop ecx
je 0x46eaf0
mov eax, dword [0x4d6340]
mov byte [ebp + 0xb], 2
jmp 0x46eb0c
push dword [ebp - 0x40]
push 0x4bdf24
call fcn.0043f15a
test al, al
pop ecx
pop ecx
je 0x46eb0f
mov eax, dword [0x4d633c]
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0xd], bl
jne 0x46eb26
cmp byte [ebp - 0x19], bl
jne 0x46eb26
push 0x4c012c
lea ecx, [ebp - 0x20]
call fcn.0044420d
cmp byte [ebp - 0x19], bl
mov dword [ebp - 0x30], ebx
je 0x46eb3a
mov dword [ebp - 8], 0x4b0
jmp 0x46ed3d
cmp byte [ebp + 0xb], bl
jne 0x46ed3d
push dword [ebp - 0x40]
mov byte [ebp - 0xd], 1
push str.CONOUT_
call fcn.0043f15a
test al, al
pop ecx
pop ecx
je 0x46eb6a
push 0x100
mov byte [ebp - 0xd], bl
call fcn.00442208
pop ecx
jmp 0x46eb7c
cmp byte [ebp - 0x41], bl
je 0x46eb7c
push ebx
push ebx
push dword [ebp - 0x40]
call fcn.0044ab5d
add esp, 0xc
push dword [ebp - 0x40]
call fcn.00404e8f
test eax, eax
pop ecx
mov edi, 0xc0000000
je 0x46eba5
push 7
push edi
push dword [ebp - 0x40]
call fcn.00414056
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x46ec19
push ebx
push 0x80
push 3
push ebx
push 7
push edi
push dword [ebp - 0x40]
lea ecx, [ebp - 0xc]
call fcn.0040569f
mov esi, dword [ebp - 0xc]
cmp esi, ebx
jne 0x46ec19
push ebx
push 0x2000080
push 3
push ebx
push 7
push edi
push dword [ebp - 0x40]
lea ecx, [ebp - 0xc]
call fcn.0040569f
mov esi, dword [ebp - 0xc]
cmp esi, ebx
jne 0x46ec19
push ebx
push 0x80
push 4
push ebx
push 7
push edi
push dword [ebp - 0x40]
lea ecx, [ebp - 0xc]
call fcn.0040569f
mov esi, dword [ebp - 0xc]
cmp esi, ebx
jne 0x46ec19
push ebx
push 0x2000080
push 4
push ebx
push 7
push edi
push dword [ebp - 0x40]
lea ecx, [ebp - 0xc]
call fcn.0040569f
mov esi, dword [ebp - 0xc]
cmp esi, ebx
mov dword [ebp - 0x28], esi
jne 0x46ec2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x46edf7
xor eax, eax
cmp byte [ebp - 0xd], bl
lea edi, [ebp - 0x49]
mov byte [ebp - 0x4c], bl
mov byte [ebp - 0x4b], bl
mov byte [ebp - 0x4a], bl
stosw word es:[edi], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
je 0x46ec5d
push ebx
lea eax, [ebp - 0x38]
push eax
push 3
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x38]
cmp byte [ebp - 0x4c], 0xff
jne 0x46ec77
cmp byte [ebp - 0x4b], 0xfe
jne 0x46ecb1
mov dword [ebp - 8], 0x4b0
mov dword [ebp - 0x30], 2
cmp byte [ebp - 0x4c], 0xfe
jne 0x46ec91
cmp byte [ebp - 0x4b], 0xff
jne 0x46ecb1
mov dword [ebp - 8], 0x4b1
mov dword [ebp - 0x30], 2
cmp byte [ebp - 0x4c], 0xef
jne 0x46ecb1
cmp byte [ebp - 0x4b], 0xbb
jne 0x46ecb1
cmp byte [ebp - 0x4a], 0xbf
jne 0x46ecb1
mov dword [ebp - 8], 0xfde9
mov dword [ebp - 0x30], 3
or eax, dword [ebp - 0x34]
je 0x46eccd
cmp byte [ebp - 0x39], bl
jne 0x46eccd
push ebx
xor eax, eax
push eax
push dword [ebp - 0x30]
push esi
call fcn.0043f027
add esp, 0x10
jmp 0x46ed3d
push ebx
push ebx
push ebx
push esi
call fcn.0043f027
add esp, 0x10
cmp byte [ebp - 0x39], bl
je 0x46ece5
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp byte [ebp - 0x43], bl
jne 0x46ed3d
cmp dword [ebp - 8], 0x4b0
jne 0x46ed03
push 2
pop eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push 0x4c3228
jmp 0x46ed33
cmp dword [ebp - 8], 0x4b1
jne 0x46ed1c
push 2
pop eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push 0x4c322c
jmp 0x46ed33
cmp dword [ebp - 8], 0xfde9
jne 0x46ed3d
push 3
pop eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push 0x4c3230
push esi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
mov ecx, dword [ebp - 8]
shl eax, 1
cmp ecx, 0x4b0
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
je 0x46edba
cmp ecx, 0x4b1
jne 0x46ed71
push eax
push dword [ebp - 0x20]
call fcn.004421e7
pop ecx
pop ecx
jmp 0x46edba
cmp ecx, 0xfde9
jne 0x46ed8a
lea ecx, [ebp - 0x20]
call fcn.0040fa17
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
jmp 0x46edba
mov eax, dword [ebp - 0x20]
movzx ecx, cx
push ecx
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x20], ebx
call fcn.00444129
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cdq
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
call fcn.0043dd41
cmp byte [ebp + 0xb], bl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
je 0x46ee26
mov edi, dword [ebp - 0x28]
cmp edi, 0xffffffff
jne 0x46edd2
xor ebx, ebx
inc ebx
jmp 0x46edf7
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 0x54]
mov dword [ebp + 8], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call esi
push edi
call esi
push edi
call esi
push edi
call esi
lea ecx, [ebp - 0xc]
call fcn.00402c9f
lea ecx, [ebp - 0x20]
call fcn.0043dd41
lea ecx, [ebp - 0x68]
call fcn.0043dd41
lea ecx, [ebp - 0x64]
call fcn.0043dd41
lea ecx, [ebp - 0x80]
call fcn.0043dd41
mov eax, ebx
jmp 0x46f4f7
lea ecx, [ebp - 0x5c]
call fcn.004441a1
lea ecx, [ebp - 0x4c]
call fcn.004441a1
lea ecx, [ebp - 0x6c]
call fcn.0044402d
lea ecx, [ebp - 0x28]
call fcn.0044402d
cmp byte [ebp - 0x19], bl
je 0x46f18d
lea ecx, [ebp + 8]
call fcn.004441a1
mov eax, dword [ebp - 0x40]
cmp word [eax], 0x26
je 0x46ee69
mov ecx, dword [ebp - 0x60]
test byte [ecx + 9], 0xf
je 0x46ee9c
mov esi, 0x4d8d1c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x60]
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x40]
call fcn.00414c87
cmp eax, ebx
je 0x46ee93
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp + 8]
call fcn.004442c5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x46eea8
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.0044c85e
pop ecx
pop ecx
mov esi, dword [ebp + 8]
push esi
call edi
cmp byte [ebp - 1], 0x2d
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x2c], ebx
jne 0x46eec4
mov dword [ebp - 0x58], ebx
jmp 0x46eed8
push ebx
push 2
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.004aa100
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
or edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jne 0x46ef4b
cmp byte [ebp - 1], 0x2b
je 0x46f098
cmp eax, ebx
jbe 0x46ef38
cmp word [esi + eax*2 - 2], 0xa
jne 0x46ef0b
lea edi, [eax - 1]
cmp edi, ebx
jbe 0x46ef38
cmp word [esi + edi*2 - 2], 0xd
jne 0x46ef0b
dec edi
cmp edi, ebx
jbe 0x46ef38
lea eax, [esi + edi*2 - 2]
jmp 0x46ef1e
cmp word [eax], 0xa
je 0x46ef24
dec edi
dec eax
dec eax
cmp eax, esi
jae 0x46ef15
jmp 0x46ef38
cmp byte [ebp - 1], 0x2d
jne 0x46ef38
dec edi
dec eax
dec eax
cmp eax, esi
jb 0x46ef38
cmp word [eax], 0xd
jne 0x46ef38
dec edi
cmp byte [ebp - 1], 0x2d
mov word [esi + edi*2], bx
jne 0x46f09e
jmp 0x46f174
mov esi, dword [ebp + 8]
xor edi, edi
inc edi
cmp dword [ebp - 0x18], edi
jne 0x46ef68
cmp dword [ebp - 0x14], ebx
jne 0x46ef68
cmp byte [ebp - 1], 0x2b
mov dword [ebp - 0x50], ebx
jne 0x46ef6e
xor ecx, ecx
jmp 0x46ef71
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 8]
xor eax, eax
cmp byte [ebp - 1], 0x2b
sete al
inc eax
cmp byte [ebp - 1], 0x2d
jne 0x46ef90
cmp dword [ebp - 0x18], edi
jne 0x46ef90
cmp dword [ebp - 0x14], ebx
jne 0x46ef90
mov dword [ebp - 0x24], edi
jmp 0x46efbc
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
jne 0x46efbc
cmp dword [ebp - 0x14], ebx
jne 0x46efbc
cmp byte [ebp - 1], 0x2b
jne 0x46efbc
mov edx, dword [ebp - 0x58]
cmp edx, ebx
jbe 0x46efbc
mov edi, dword [ebp - 0x20]
cmp word [edi + edx*2 - 2], 0xa
je 0x46efbc
mov dword [ebp - 0x2c], 2
cdq
cmp dword [ebp - 0x14], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
jl 0x46f08a
jg 0x46efd7
cmp dword [ebp - 0x18], eax
jb 0x46f08a
push 2
pop edx
mov di, word [esi]
cmp di, bx
je 0x46f08a
cmp di, 0xa
je 0x46f006
cmp di, 0xd
jne 0x46effa
add esi, edx
cmp word [esi], 0xa
je 0x46f033
add esi, edx
mov di, word [esi]
cmp di, bx
jne 0x46efe6
jmp 0x46f070
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x38], eax
jne 0x46f020
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x14]
jne 0x46f020
mov ecx, esi
sub ecx, dword [ebp + 8]
sar ecx, 1
add ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], edx
jne 0x46f066
cmp dword [ebp - 0x14], ebx
jne 0x46f066
mov edi, esi
sub edi, dword [ebp + 8]
sar edi, 1
jmp 0x46f063
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x38], eax
jne 0x46f051
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x14]
jne 0x46f051
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub eax, dword [ebp + 8]
sar eax, 1
lea ecx, [eax + ecx*2 - 1]
cmp dword [ebp - 0x18], edx
jne 0x46f066
cmp dword [ebp - 0x14], ebx
jne 0x46f066
mov edi, esi
sub edi, dword [ebp + 8]
sar edi, 1
dec edi
mov dword [ebp - 0x50], edi
add dword [ebp - 0x18], 0xffffffff
adc dword [ebp - 0x14], 0xffffffff
add esi, edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x34]
jg 0x46efda
jl 0x46f08a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x38]
jae 0x46efda
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x24], eax
cmp byte [ebp - 1], 0x2d
je 0x46f0b1
cmp edi, ebx
jbe 0x46f0b1
cmp word [esi + edi*2 - 2], 0xa
je 0x46f0b1
mov dword [ebp - 0x70], 2
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x2c]
lea esi, [eax + edx]
add esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x24]
sub ecx, edi
add eax, esi
mov dword [ebp - 0x14], ecx
lea ecx, [eax + edi + 1]
mov eax, dword [ebp + 8]
add edi, edi
add eax, edi
cmp dword [ebp - 8], ecx
mov dword [ebp - 0x50], ecx
jb 0x46f0f8
cmp dword [ebp - 0x24], ebx
jbe 0x46f0f8
mov ecx, dword [ebp - 0x24]
add ecx, ecx
push ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [eax + ecx*2]
push ecx
lea eax, [eax + esi*2]
push eax
call fcn.00413f99
add esp, 0xc
push dword [ebp - 0x50]
lea ecx, [ebp + 8]
call fcn.004441e6
mov eax, dword [ebp + 8]
add edi, eax
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 8], eax
jae 0x46f12d
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jbe 0x46f12d
add eax, eax
push eax
mov eax, dword [ebp - 0x14]
lea eax, [edi + eax*2]
push eax
lea eax, [edi + esi*2]
push eax
call fcn.00413f99
add esp, 0xc
cmp dword [ebp - 0x70], ebx
je 0x46f140
mov word [edi], 0xd
inc edi
inc edi
mov word [edi], 0xa
inc edi
inc edi
mov esi, dword [ebp - 0x58]
cmp esi, ebx
jbe 0x46f157
push esi
push dword [ebp - 0x20]
push edi
call fcn.0040561e
add esp, 0xc
lea edi, [edi + esi*2]
cmp dword [ebp - 0x2c], ebx
je 0x46f16a
mov word [edi], 0xd
inc edi
inc edi
mov word [edi], 0xa
inc edi
inc edi
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov word [edi + eax*2], bx
mov ecx, dword [ebp - 0x60]
push esi
push dword [ebp - 0x40]
call fcn.004438ac
lea ecx, [ebp + 8]
call fcn.0043dd41
jmp 0x46f4ad
mov edi, dword [ebp - 0x18]
mov eax, edi
or eax, dword [ebp - 0x14]
jne 0x46f245
cmp byte [ebp - 1], 0x2b
je 0x46f236
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push ebx
push ecx
push eax
push esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
call fcn.0043f027
push 1
push ebx
push ebx
push esi
call fcn.0043f027
push dword [ebp - 0x24]
mov edi, eax
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x2c], edx
call fcn.0044a856
add esp, 0x30
jmp 0x46f20e
mov eax, dword [ebp - 0x2c]
push 1
push ebx
push ebx
push esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
call fcn.0043f027
push dword [ebp - 0x24]
mov edi, eax
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x2c], edx
call fcn.0044a856
add esp, 0x20
test eax, eax
jne 0x46f1e0
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
call fcn.0043f027
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push dword [ebp - 0x38]
push eax
call fcn.0044aba8
mov edi, dword [ebp - 0x18]
add esp, 0x1c
jmp 0x46f288
push 2
push ebx
push ebx
push esi
call fcn.0043f027
add esp, 0x10
jmp 0x46f288
xor eax, eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
jg 0x46f288
jge 0x46f283
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044a856
add esp, 0x10
test eax, eax
je 0x46f288
add dword [ebp - 0x30], 1
adc dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
jl 0x46f258
jg 0x46f288
cmp dword [ebp - 0x30], edi
jb 0x46f258
cmp byte [ebp - 1], 0x2b
jne 0x46f337
or edi, dword [ebp - 0x14]
jne 0x46f2aa
push dword [ebp - 0x54]
lea ecx, [ebp - 0xc]
push dword [ebp - 0x58]
call fcn.0043db8c
jmp 0x46f4ad
push 1
push ebx
push ebx
push esi
call fcn.0043f027
push esi
mov edi, eax
call fcn.00497abb
add esp, 0x14
sub eax, edi
mov dword [ebp + 8], eax
jns 0x46f2c9
mov dword [ebp + 8], ebx
add eax, 0xca
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044404a
mov eax, edi
cdq
push ebx
push edx
mov edi, eax
push edi
push esi
mov dword [ebp - 0x34], edx
call fcn.0043f027
add esp, 0x10
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 0x34]
push edi
push esi
call fcn.0043f027
add esp, 0x10
push dword [ebp - 0x54]
lea ecx, [ebp - 0xc]
push dword [ebp - 0x58]
call fcn.0043db8c
cmp dword [ebp + 8], ebx
jle 0x46f32f
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.0043db8c
lea ecx, [ebp - 0x2c]
jmp 0x46f4a8
cmp byte [ebp - 1], 0x2d
jne 0x46f3e8
or edi, dword [ebp - 0x14]
je 0x46f4ad
push 1
push ebx
push ebx
push esi
call fcn.0043f027
push dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x34], edx
call fcn.0044a856
push 1
push ebx
push ebx
push esi
call fcn.0043f027
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.00497abb
mov edi, eax
sub edi, dword [ebp - 0x30]
add esp, 0x34
lea eax, [edi + 0xca]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x70], edx
call fcn.0044404a
push ebx
lea eax, [ebp - 0x14]
push eax
add edi, 0xc8
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
call fcn.0043f027
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push dword [ebp - 0x38]
push eax
call fcn.0044aba8
add esp, 0x1c
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push dword [ebp + 8]
call fcn.0043db8c
jmp 0x46f4a5
or edi, dword [ebp - 0x14]
je 0x46f297
push 1
push ebx
push ebx
push esi
call fcn.0043f027
push dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x34], edx
call fcn.0044a856
push 1
push ebx
push ebx
push esi
call fcn.0043f027
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.00497abb
mov edi, eax
sub edi, dword [ebp - 0x30]
add esp, 0x34
lea eax, [edi + 0xca]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x70], edx
call fcn.0044404a
push ebx
lea eax, [ebp - 0x14]
push eax
add edi, 0xc8
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
call fcn.0043f027
add esp, 0x10
push dword [ebp - 0x54]
lea ecx, [ebp - 0xc]
push dword [ebp - 0x58]
call fcn.0043db8c
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push dword [ebp + 8]
call fcn.0043db8c
push 1
push ebx
push ebx
push esi
call fcn.0043f027
mov dword [ebp - 0x2c], edx
cdq
push edx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044aba8
add esp, 0x1c
lea ecx, [ebp + 8]
call fcn.0043dd41
lea ecx, [ebp - 0x28]
call fcn.0043dd41
lea ecx, [ebp - 0x6c]
call fcn.0043dd41
lea ecx, [ebp - 0x4c]
call fcn.0043dd41
lea ecx, [ebp - 0x5c]
call fcn.0043dd41
lea ecx, [ebp - 0xc]
call fcn.00402c9f
lea ecx, [ebp - 0x20]
call fcn.0043dd41
lea ecx, [ebp - 0x68]
call fcn.0043dd41
lea ecx, [ebp - 0x64]
call fcn.0043dd41
lea ecx, [ebp - 0x80]
call fcn.0043dd41
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8