Function at 0x44f4e0
Capabilities:
Check if file exists
Clear file content
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x56126b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [esp + 0x45c]
mov edi, dword [esp + 0x458]
xor ebp, ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebp
call fcn.005089db
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x44f551
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
push 1
push ebp
push bind
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x460], ebp
call fcn.0044f040
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp ebx, ebp
jne 0x44f776
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44f776
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x44f5a4
sub eax, edx
sar eax, 1
lea esi, [eax - 6]
mov ecx, str._u.ini
lea eax, [edi + esi*2]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44f5e6
cmp dx, bp
je 0x44f5e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44f5e6
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x44f5c0
xor eax, eax
jmp 0x44f5eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x44f776
push esi
push edi
lea ecx, [esp + 0x3c]
push 0x208
push ecx
call fcn.0044c530
mov edx, 0x208
push 0x579c24
sub edx, esi
push edx
lea eax, [esp + esi*2 + 0x4c]
push eax
call fcn.0053fe1c
add esp, 0x1c
push 1
push ebp
xor ecx, ecx
push bind
lea edx, [esp + 0x40]
mov word [esp + esi*2 + 0x48], cx
push edx
lea ecx, [esp + 0x24]
call fcn.0044f040
test eax, eax
je 0x44f776
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x44f657
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x44f659
xor edi, edi
lea eax, [edi + 1]
push eax
call fcn.004ff95f
add esp, 4
push 1
mov ebp, eax
push edi
push ebp
lea ecx, [esp + 0x20]
call fcn.0044f2a0
lea ecx, [esp + 0x14]
mov byte [edi + ebp], 0
call fcn.0044b4d0
xor ecx, ecx
lea ebx, [edi + 3]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
add esp, 4
mov esi, eax
push edi
lea ecx, [esi + 2]
push ecx
push edi
push ebp
push 0
mov eax, 0xfeff
push 0
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
inc edi
lea eax, [edi + edi]
xor edx, edx
push ebp
mov dword [esp + 0x30], eax
mov word [eax + esi], dx
call fcn.004ff96a
push str._Opions_
push esi
call fcn.00541d06
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x44f717
add ebp, 6
mov eax, ebp
sub eax, esi
sar eax, 1
mov ecx, edi
sub ecx, eax
push ecx
sub ebx, eax
push ebp
inc ebx
lea edx, [ebp + 2]
push ebx
push edx
call fcn.0044c530
inc edi
add edi, edi
add esp, 0x10
mov eax, 0x74
xor ecx, ecx
mov word [ebp], ax
mov word [edi + esi], cx
jmp 0x44f71b
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
push 1
push 0
push 0x40000000
push ebx
lea ecx, [esp + 0x24]
call fcn.0044f040
test eax, eax
je 0x44f763
push 1
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.0044f330
lea ecx, [esp + 0x14]
call fcn.0044b4d0
push 1
push 0
push bind
push ebx
lea ecx, [esp + 0x24]
call fcn.0044f040
mov dword [esp + 0x24], eax
push esi
call fcn.004ff96a
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
xor esi, esi
cmp ebx, ebp
je 0x44f7ed
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x44f790
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x44f792
xor edi, edi
mov eax, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
add esp, 4
push 1
mov ebx, eax
push edi
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
call fcn.0044f2a0
test ebp, ebp
je 0x44f7e5
cmp dword [esp + 0x1c], 0
je 0x44f7dc
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
xor eax, eax
mov word [ebx + esi*2], ax
jmp 0x44f81d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44f819
push 4
call fcn.004ff95f
add esp, 4
mov ecx, 0xfeff
xor edx, edx
mov word [eax], cx
mov dword [esp + 0x20], eax
mov esi, 1
mov word [eax + 2], dx
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x44f827
mov dword [eax], esi
mov dword [esp + 0x450], 0xffffffff
test ebp, ebp
je 0x44f84b
cmp dword [esp + 0x1c], 0
je 0x44f844
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f86b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0053f73f
add esp, 0x440
ret