Function at 0x42c203
Capabilities:
Clear file content
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x4310b4]
xor eax, esp
mov dword [esp + 0x670], eax
or dword [esp], 0xffffffff
lea eax, [esp + 0x24]
push ebx
push esi
push edi
mov ebx, 0x104
mov dword [esp + 0x2c], edx
xor esi, esi
mov byte [esp + 0x23c], 1
push ebx
push esi
push eax
mov edi, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x244], esi
mov dword [esp + 0x24c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x668], esi
lea eax, [esp + 0x460]
mov byte [esp + 0x66c], 1
mov dword [esp + 0x670], ebx
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x450], esi
lea eax, [esp + 0x248]
mov byte [esp + 0x454], 1
mov dword [esp + 0x458], ebx
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [esp + 0x3c]
add esp, 0xc
cmp byte [esp + 0x23c], al
sete al
dec eax
and eax, 0x7ee3
add eax, ebx
push eax
call fcn.0040d300
test eax, eax
js 0x42c9dd
xor eax, eax
lea ecx, [esp + 0x460]
cmp byte [esp + 0x66c], al
sete al
dec eax
and eax, 0x7ee3
add eax, ebx
push eax
call fcn.0040d300
test eax, eax
js 0x42c9dd
xor eax, eax
lea ecx, [esp + 0x248]
cmp byte [esp + 0x454], al
sete al
dec eax
and eax, 0x7ee3
add eax, ebx
push eax
call fcn.0040d300
test eax, eax
js 0x42c9dd
push esi
lea eax, [esp + 0x14]
mov ecx, 0xfe00
push eax
call fcn.004161f4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x42c9dd
cmp dword [0x439780], esi
je 0x42c376
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebx
call fcn.004161f4
mov dword [esp + 0x28], eax
test eax, eax
je 0x42c9dd
cmp ebx, dword [esp + 0x24]
jb 0x42c37e
mov eax, dword [esp + 0x24]
jmp 0x42c37a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov ebx, dword [edi + 0x20]
mov ecx, dword [ebx]
call fcn.00413830
test eax, eax
jne 0x42c398
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x42c381
jmp 0x42c9b8
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x18]
mov ecx, fcn.00417010
push esi
push 0x21
call fcn.00416ed9
mov edi, dword [esp + 0x18]
and dword [ebx + 0x1c], 0xffff3fff
mov eax, dword [ebx + 0x1c]
test al, 4
je 0x42c3ca
and eax, 0xfffffffb
or eax, 2
mov dword [ebx + 0x1c], eax
cmp dword [0x435614], esi
jne 0x42c9ac
mov edx, dword [esp + 0x668]
test edx, edx
jne 0x42c3e8
lea edx, [esp + 0x460]
push dword [esp + 0x670]
mov ecx, ebx
call fcn.0041580e
cmp eax, 1
je 0x42c9ac
push dword [ebx + 4]
push 0x402368
call fcn.00408ec2
mov eax, dword [esp + 0x240]
pop ecx
pop ecx
test eax, eax
jne 0x42c41d
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push esi
push dword [esp + 0x244]
push eax
call fcn.00414d32
cmp eax, 1
je 0x42c9ac
mov edx, dword [esp + 0x238]
mov eax, edx
test edx, edx
jne 0x42c44b
lea eax, [esp + 0x30]
cmp word [eax], si
je 0x42c8aa
test edx, edx
jne 0x42c45c
lea edx, [esp + 0x30]
mov ecx, dword [ebx + 4]
call fcn.0042cb36
mov ecx, dword [ebx + 4]
test eax, eax
je 0x42c484
push edi
push dword [esp + 0x20]
mov edx, ebx
call fcn.0042ca1c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
jmp 0x42c6bb
mov edx, dword [ebx + 0x1c]
push ecx
and edx, 0x800
push ecx
shl edx, 0xa
call fcn.0041736a
mov edi, eax
cmp edi, 0xffffffff
je 0x42c9a1
mov ecx, edi
call fcn.0040cc8e
test eax, eax
je 0x42c4b8
mov ecx, 0x80
mov dword [esp + 0x18], ecx
jmp 0x42c4bc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x238]
test eax, eax
jne 0x42c4cb
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x1c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x28]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.00415780
mov dword [esp + 0x24], eax
cmp dword [0x439820], esi
jne 0x42c99b
mov ecx, dword [esp + 0x238]
test ecx, ecx
jne 0x42c501
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x238]
test al, 2
jne 0x42c546
test ecx, ecx
jne 0x42c51b
lea ecx, [esp + 0x30]
call fcn.00416e01
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x42c98e
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
mov ecx, dword [esp + 0xc]
jmp 0x42c562
test ecx, ecx
jne 0x42c54e
lea ecx, [esp + 0x30]
push ecx
xor edx, edx
push ecx
inc edx
call fcn.0041736a
mov ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0xffffffff
je 0x42c98e
cmp dword [0x439818], esi
je 0x42c5f7
cmp dword [esp + 0x20], esi
jle 0x42c5eb
mov eax, dword [esp + 0x238]
test eax, eax
jne 0x42c58c
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x1c]
push edi
push eax
push dword [esp + 0x28]
call fcn.0042cd57
mov ecx, dword [esp + 0xc]
cmp dword [0x439780], esi
je 0x42c5eb
call fcn.0040cc8e
test eax, eax
jne 0x42c5e7
mov edx, dword [esp + 0x238]
test edx, edx
jne 0x42c5bf
lea edx, [esp + 0x30]
push dword [esp + 0x28]
lea ecx, [esp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0042c098
cmp eax, 1
je 0x42c923
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
jmp 0x42c5eb
mov ecx, dword [esp + 0xc]
cmp dword [0x439818], esi
jne 0x42c6aa
mov eax, dword [esp + 0x24]
jmp 0x42c601
mov ecx, dword [esp + 0xc]
cmp eax, 1
jne 0x42c6aa
mov eax, dword [esp + 0x238]
test eax, eax
jne 0x42c619
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x1c]
push edi
push eax
push dword [esp + 0x28]
call fcn.0042cd57
mov ecx, dword [esp + 0xc]
cmp dword [0x439780], esi
je 0x42c678
call fcn.0040cc8e
test eax, eax
jne 0x42c674
mov edx, dword [esp + 0x238]
test edx, edx
jne 0x42c64c
lea edx, [esp + 0x30]
push dword [esp + 0x28]
lea ecx, [esp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0042c098
cmp eax, 1
je 0x42c946
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
jmp 0x42c678
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x238]
test eax, eax
jne 0x42c687
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push ebx
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
push dword [esp + 0x28]
call fcn.00415780
cmp dword [0x439818], esi
je 0x42c5fd
mov ecx, edi
mov dword [0x439818], esi
call fcn.0040fa2d
mov edi, dword [esp + 0x18]
mov edx, dword [ebx + 0x20]
mov dword [0x439784], esi
mov dword [esp + 0x24], edx
test edx, edx
je 0x42c89a
mov eax, dword [edx + 0x1c]
test al, 4
je 0x42c6e0
and eax, 0xfffffffb
or eax, 2
mov dword [edx + 0x1c], eax
mov ecx, dword [esp + 0x450]
test ecx, ecx
jne 0x42c6f2
lea ecx, [esp + 0x248]
push dword [ebx + 4]
push dword [edx]
mov edx, dword [esp + 0x460]
call fcn.00414ef7
test eax, eax
je 0x42c710
push esi
push eax
call fcn.004156ed
jmp 0x42c72d
mov eax, dword [esp + 0x450]
test eax, eax
jne 0x42c722
lea eax, [esp + 0x248]
push eax
push 0x402368
call fcn.00408ec2
pop ecx
pop ecx
mov ecx, dword [esp + 0x450]
test ecx, ecx
jne 0x42c741
lea ecx, [esp + 0x248]
call fcn.00413830
test eax, eax
je 0x42c883
mov edx, dword [esp + 0x238]
test edx, edx
jne 0x42c75d
lea edx, [esp + 0x30]
mov ecx, dword [esp + 0x450]
test ecx, ecx
jne 0x42c76f
lea ecx, [esp + 0x248]
call fcn.0042cb36
test eax, eax
je 0x42c78a
push esi
push 0x2340
call fcn.004156ed
pop ecx
pop ecx
jmp 0x42c883
mov ecx, dword [esp + 0x450]
test ecx, ecx
jne 0x42c79c
lea ecx, [esp + 0x248]
push ecx
push ecx
xor edx, edx
call fcn.0041736a
mov edi, eax
cmp edi, 0xffffffff
je 0x42c972
mov ecx, edi
call fcn.0040cc8e
test eax, eax
je 0x42c866
mov ecx, 0x80
mov dword [esp + 0x18], ecx
jmp 0x42c86a
mov eax, dword [esp + 0x238]
test eax, eax
jne 0x42c7dc
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x1c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x28]
push dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00415780
test eax, eax
je 0x42c876
mov eax, dword [esp + 0x238]
test eax, eax
jne 0x42c809
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push edi
push eax
push dword [esp + 0x28]
call fcn.0042cd57
cmp dword [0x439780], esi
je 0x42c866
mov ecx, dword [esp + 0xc]
call fcn.0040cc8e
test eax, eax
jne 0x42c866
mov edx, dword [esp + 0x238]
test edx, edx
jne 0x42c840
lea edx, [esp + 0x30]
push dword [esp + 0x28]
lea ecx, [esp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0042c098
cmp eax, 1
je 0x42c95c
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x18]
cmp dword [0x439818], esi
je 0x42c7cd
mov ecx, edi
mov dword [0x439818], esi
call fcn.0040fa2d
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x24], edx
test edx, edx
jne 0x42c6d0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push esi
push dword [esp + 0x10]
call fcn.00415714
push dword [esp + 0x14]
mov edx, dword [ebx + 0x18]
mov ecx, fcn.00417010
push 0x21
call fcn.00416e8a
test al, al
jne 0x42c3b3
mov ecx, dword [esp + 0x14]
call fcn.00411bba
mov eax, dword [esp + 0x450]
mov dword [esp + 0x450], esi
test eax, eax
je 0x42c8e8
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [esp + 0x668]
mov dword [esp + 0x668], esi
test eax, eax
je 0x42c902
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [esp + 0x238]
mov dword [esp + 0x238], esi
test eax, eax
je 0x42c91c
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
jmp 0x42ca01
mov ecx, dword [esp + 0x14]
call fcn.00411bba
mov ecx, edi
call fcn.0040fa2d
mov ecx, dword [esp + 0x10]
call fcn.0040fa2d
xor edx, edx
xor ecx, ecx
inc edx
call fcn.0042c182
mov ecx, dword [esp + 0x14]
call fcn.00411bba
mov ecx, edi
call fcn.0040fa2d
mov ecx, dword [esp + 0x10]
jmp 0x42c937
mov ecx, dword [esp + 0x14]
call fcn.00411bba
mov ecx, edi
call fcn.0040fa2d
mov ecx, dword [esp + 0x10]
jmp 0x42c937
mov ecx, dword [esp + 0x14]
call fcn.00411bba
mov ecx, dword [esp + 0xc]
call fcn.0040fa2d
push 0x6e
pop ecx
call fcn.0042d440
jmp 0x42c93c
mov ecx, dword [esp + 0x14]
call fcn.00411bba
mov ecx, edi
jmp 0x42c97f
mov ecx, dword [esp + 0x14]
jmp 0x42c992
mov ecx, dword [esp + 0x14]
call fcn.00411bba
jmp 0x42c984
mov ecx, dword [esp + 0x14]
call fcn.00411bba
xor esi, esi
inc esi
lea ecx, [esp + 0x248]
call fcn.0040fce6
lea ecx, [esp + 0x460]
call fcn.0040fce6
lea ecx, [esp + 0x30]
call fcn.0040fce6
mov eax, esi
jmp 0x42ca01
lea ecx, [esp + 0x248]
call fcn.0040fce6
lea ecx, [esp + 0x460]
call fcn.0040fce6
lea ecx, [esp + 0x30]
call fcn.0040fce6
xor eax, eax
inc eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417b90
mov esp, ebp
pop ebp
ret