Function at 0x441280
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5792fe
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x24c], ebx
mov esi, edx
mov dword [ebp - 0x244], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x248], edi
call fcn.0044d418
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4412e6
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x23c], eax
push edi
mov byte [ebp - 4], 1
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, eax
test edi, edi
jne 0x441329
mov ecx, dword [ebp - 0x244]
push 0x14
push 0x5b098c
call fcn.00407870
jmp 0x4415c8
add dword [esi], 0x224
push 0
lea eax, [ebp - 0x248]
adc dword [esi + 4], 0
push eax
push 0x224
lea ecx, [ebp - 0x238]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x44136c
mov ecx, dword [ebp - 0x244]
push 0x14
push 0x5b098c
call fcn.00407870
jmp 0x4415c8
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0040d110
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea edi, [edx - 0x10]
mov dword [ebp - 0x240], eax
cmp edi, eax
je 0x441457
cmp dword [eax + 0xc], 0
jl 0x441447
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x441447
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4413db
cmp eax, dword [edi]
jne 0x4413db
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x441417
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x4413f4
call fcn.0043d450
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0054de82
add esp, 0x10
mov eax, dword [ebp - 0x240]
add eax, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44143c
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [ebp - 0x23c], ebx
jmp 0x441457
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x23c]
call fcn.00407870
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x250]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44147d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x23c]
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x240], esp
mov dword [ebp - 0x240], esp
call eax
cmp dword [ebx - 4], 0
lea ecx, [ebx - 4]
jl 0x4414b6
cmp eax, dword [ebx - 0x10]
jne 0x4414b6
lea edi, [ebx - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4414ef
mov ecx, dword [ebx - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4414cf
call fcn.0043d450
mov eax, dword [ebx - 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebx - 0xc]
lea ecx, [eax + eax + 2]
push ecx
push ebx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0054de82
add esp, 0x10
mov edx, dword [ebp - 0x240]
add edi, 0x10
mov dword [edx], edi
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp - 0x24c]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x244]
call fcn.00441050
mov edx, dword [ebp - 0x238]
add dword [esi], edx
mov edi, eax
mov eax, dword [ebp - 0x234]
adc dword [esi + 4], eax
test edi, edi
je 0x4415c8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x23c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebx - 4], 1
jle 0x441562
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004076d0
mov ecx, dword [ebp - 0x23c]
push 0
push 0
push 3
push 0
push 3
push pe_nt_image_headers32
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov esi, eax
cmp esi, 0xffffffff
setne dl
mov edi, edx
test edi, edi
jne 0x4415a2
mov ecx, dword [ebp - 0x244]
push 0x15
push 0x5b0b64
call fcn.00407870
jmp 0x4415b8
lea eax, [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, 1
test esi, esi
je 0x4415c8
cmp esi, 0xffffffff
je 0x4415c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4415ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441614
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret 8