Function at 0x403e20
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452728
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x468600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
cmp dword [edi + 0x110], ebx
jne 0x403e81
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
push str.log.csv
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x110], eax
mov eax, dword [edi + 0x110]
cmp eax, ebx
je 0x4043de
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4043de
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edi + 0x110]
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edx
push eax
push ecx
call esi
test eax, eax
je 0x4043de
mov edx, dword [ebp - 0x24]
or edx, dword [ebp - 0x20]
jne 0x403fb2
mov eax, dword [edi + 0x110]
push 0x45d3c8
push eax
call fcn.00404400
mov ecx, dword [edi + 0x110]
push 0x45d3d0
push ecx
call fcn.00404400
mov edx, dword [edi + 0x110]
push 0x45d3dc
push edx
call fcn.00404400
mov eax, dword [edi + 0x110]
push 0x45d3e8
push eax
call fcn.00404400
mov ecx, dword [edi + 0x110]
push 0x45d3f4
push ecx
call fcn.00404400
mov edx, dword [edi + 0x110]
push 0x45d3fc
push edx
call fcn.00404400
mov eax, dword [edi + 0x110]
push 0x45d408
push eax
call fcn.00404400
mov ecx, dword [edi + 0x110]
push 0x45d414
push ecx
call fcn.00404400
mov edx, dword [edi + 0x110]
add esp, 0x40
push 0x45d420
push edx
call fcn.00404400
mov eax, dword [edi + 0x110]
push 0x45d42c
push eax
call fcn.00404400
mov ecx, dword [edi + 0x110]
push 0x45d434
push ecx
call fcn.00404400
mov edx, dword [edi + 0x110]
push 0x45d43c
push edx
call fcn.00404400
mov eax, dword [edi + 0x110]
push 0x45d448
push eax
call fcn.00404400
add esp, 0x28
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, eax
and edx, ecx
cmp edx, ebx
lea edx, [ebp - 0x1c]
jne 0x403fef
push 1
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x110]
push eax
mov dword [ebp - 0x18], ecx
call esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], edx
jmp 0x40400f
push 0
push edx
push ecx
push eax
mov dword [edi + 0x108], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x110]
push eax
mov dword [edi + 0x10c], ecx
mov dword [ebp - 0x18], ecx
call esi
push edi
mov edx, 0x3f6
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40405c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov edx, 0x3ec
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 1
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov edx, 0x3ed
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 2
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov edx, 0x3ee
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 3
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404143
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov edx, 0x3ef
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 4
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov edx, 0x3f0
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 5
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov edx, 0x3f1
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 6
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40422a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov edx, 0x3f2
lea esi, [ebp + 0x10]
call fcn.004044c0
mov dword [ebp - 4], 7
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push 0x45d450
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404277
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0xf0], 0
je 0x40431d
mov eax, dword [edi + 0xf4]
test eax, eax
jne 0x404295
mov eax, str.PASS
jmp 0x4042a4
cmp eax, 1
mov eax, str.FAIL
je 0x4042a4
mov eax, str.STOPPED
mov ecx, dword [edi + 0x110]
push eax
push 0x45d450
push ecx
call fcn.00404400
fld qword [edi + 0xf8]
mov edx, dword [edi + 0x110]
fstp qword [esp + 4]
add esp, 4
push str._0.2lfMB_s_
push edx
call fcn.00404400
fld qword [edi + 0x100]
mov eax, dword [edi + 0x110]
fstp qword [esp + 8]
add esp, 8
push str._0.2lfMB_s_
push eax
call fcn.00404400
add esp, 0x10
cmp dword [edi + 0xf4], 0
jne 0x404309
cmp dword [ebp + 8], 0
mov eax, str.PASS
jne 0x40430e
mov eax, str.FAIL
mov ecx, dword [edi + 0x110]
push eax
push 0x45d450
push ecx
jmp 0x404370
mov edx, dword [edi + 0x110]
push 0x45d478
push edx
call fcn.00404400
mov eax, dword [edi + 0x110]
push 0x45d478
push eax
call fcn.00404400
mov ecx, dword [edi + 0x110]
push 0x45d478
push ecx
call fcn.00404400
add esp, 0x18
cmp dword [ebp + 8], 0
mov eax, str.PASS
jne 0x404363
mov eax, str.FAIL
mov edx, dword [edi + 0x110]
push eax
push 0x45d450
push edx
call fcn.00404400
add esp, 0xc
push 0
call fcn.00429082
mov dword [ebp - 0x2c], eax
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp + 8]
mov dword [ebp - 0x28], edx
call fcn.004078d0
mov dword [ebp - 4], 8
mov ecx, dword [eax]
mov edx, dword [edi + 0x110]
push ecx
push str._ws_n
push edx
call fcn.00404400
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4043d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc