Function at 0x44e54c
Capabilities:
Get file size
Read file on windows
Set file attributes

Disassembly:
sub esp, 0xc
push esi
push 0x80
push 0x45bee4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x45c4f0]
xor esi, esi
push esi
push 0x80000086
push 3
mov dword [eax + 4], esi
mov ecx, dword [0x45c4f0]
push esi
push 3
mov dword [ecx + 0xc], esi
mov edx, dword [0x45c4f0]
push 0xc0000000
push 0x45bee4
mov dword [edx + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x45c4f0]
mov dword [ecx + 4], eax
mov edx, dword [0x45c4f0]
mov eax, dword [edx + 4]
cmp eax, 0xffffffff
jne 0x44e5b5
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x45c4f0]
mov dword [ecx], eax
mov eax, dword [0x45c4f0]
cmp dword [eax], 0x1000
jb 0x44e5ae
mov edx, dword [eax + 4]
push esi
push esi
push esi
push 4
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [0x45c4f0]
mov dword [ecx + 8], eax
mov edx, dword [0x45c4f0]
mov eax, dword [edx + 8]
cmp eax, esi
je 0x44e5ae
push esi
push esi
push esi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [0x45c4f0]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x45c4f0]
mov eax, dword [ecx + 0xc]
cmp eax, esi
je 0x44e5ae
mov dword [ecx + 0x10], eax
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 0x10]
cmp dword [edx + 0x3c], 0x1000
ja 0x44e5ae
mov eax, edx
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x14]
add ecx, 4
mov dword [eax + 0x18], ecx
mov eax, dword [0x45c4f0]
mov edx, dword [eax + 0x14]
add edx, 0x18
mov dword [eax + 0x1c], edx
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x14]
cmp dword [ecx], 0x4550
jne 0x44e5ae
mov ecx, dword [eax + 0x18]
mov edx, 0x14c
cmp word [ecx], dx
jne 0x44e5ae
mov edx, 0x2000
test word [ecx + 0x12], dx
jne 0x44e5ae
mov ecx, dword [eax + 0x1c]
mov edx, 0x10b
cmp word [ecx], dx
jne 0x44e5ae
movzx edx, word [ecx + 0x44]
cmp dx, 2
je 0x44e6b5
cmp dx, 3
jne 0x44e5ae
add ecx, 0xe0
mov dword [eax + 0x20], ecx
mov ecx, dword [0x45c4f0]
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 2]
mov esi, dword [ecx]
push ebx
mov ebx, dword [0x45c4f8]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0x20]
push ebp
lea eax, [eax + edx*8 - 0x28]
mov edx, dword [eax + 0x14]
push edi
mov edi, dword [eax + 0x10]
mov dword [esp + 0x14], edi
add edi, edx
lea ebp, [esi - 0x100]
add ebx, 9
cmp ebp, edi
ja 0x44e8ce
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
cmp eax, 0x1000
jbe 0x44e79a
cmp eax, dword [esp + 0x14]
jae 0x44e79a
mov edi, dword [ecx + 0xc]
mov eax, edi
sub eax, dword [0x45b0d0]
sub eax, ebx
add eax, dword [esp + 0x10]
add eax, edx
mov ebp, eax
sub ebp, edi
cmp ebp, esi
ja 0x44e8ce
mov esi, dword [eax + 0x3c]
cmp esi, 0x1000
jae 0x44e750
cmp dword [esi + eax], 0x4550
je 0x44e8ce
mov esi, dword [0x45c3e8]
mov eax, edi
sub eax, esi
sub eax, dword [0x45b0d0]
sub eax, ebx
add eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [0x45c4f8]
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
cmp ecx, 0x1000
jae 0x44e79a
cmp dword [ecx + eax], 0x4550
jne 0x44e79a
sub esi, edx
add esi, ebx
push esi
call fcn.0044e31c
add esp, 4
test al, al
je 0x44e8ce
push 0
push 0x87
push 3
push 0
push 1
push closesocket
push 0x45bddc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x45c4f4]
mov dword [ecx + 4], eax
mov edx, dword [0x45c4f4]
mov eax, dword [edx + 4]
cmp eax, 0xffffffff
je 0x44e8ce
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x45c4f4]
mov dword [ecx], eax
mov edx, dword [0x45c4f4]
mov eax, dword [edx]
push eax
call fcn.0044d50c
mov ecx, dword [0x45c4f4]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x45c4f4]
mov eax, dword [ecx + 0xc]
add esp, 4
test eax, eax
je 0x44e8ce
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ecx]
push edx
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x45c4f4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x45c4f4]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax]
jne 0x44e8ce
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov ecx, dword [0x45c4f4]
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x3c], 0x1000
ja 0x44e8ce
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0x14]
add ecx, 4
mov dword [eax + 0x18], ecx
mov eax, dword [0x45c4f4]
mov edx, dword [eax + 0x14]
add edx, 0x18
mov dword [eax + 0x1c], edx
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0x1c]
add ecx, 0xe0
mov dword [eax + 0x20], ecx
mov eax, dword [0x45c4f4]
mov edx, dword [eax + 0x14]
cmp dword [edx], 0x4550
jne 0x44e8ce
mov ecx, dword [eax + 0x18]
mov edx, 0x14c
cmp word [ecx], dx
jne 0x44e8ce
test byte [ecx + 0x12], 2
je 0x44e8ce
mov eax, dword [eax + 0x1c]
mov ecx, 0x10b
cmp word [eax], cx
jne 0x44e8ce
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret