Function at 0x441ed5
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x70
mov eax, 0x4aa5f7
call fcn.004674a0
mov eax, dword [ebp + 0x68]
mov esi, ecx
mov ecx, dword [ebp + 0x70]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x6c]
xor ebx, ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
cmp dword [esi + 0x3c], ebx
jne 0x441f15
xor eax, eax
jmp 0x4421c2
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 0x24]
push ecx
push eax
mov ecx, esi
call fcn.00440ecf
test al, al
je 0x441f32
mov dword [esi + 0x48], 0xffffff9c
jmp 0x441f0e
push 0x5c
call fcn.00468747
pop ecx
mov ecx, eax
mov dword [ebp + 0x18], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x441f52
push dword [esi + 0x78]
call fcn.00440b32
mov edi, eax
jmp 0x441f54
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x18], edi
cmp byte [esi + 0x42], bl
je 0x441f67
xor eax, eax
inc eax
mov word [edi + 0x48], ax
cmp byte [esi + 0x40], bl
je 0x441fa4
cmp byte [esi + 0x41], bl
jne 0x441f93
mov ecx, dword [ebp + 0x14]
call fcn.0043cdd5
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx + 0x1c], 8
jb 0x441f87
mov ecx, dword [ecx + 8]
jmp 0x441f8a
add ecx, 8
push eax
push ecx
call fcn.00405ba9
pop ecx
pop ecx
xor eax, eax
cmp byte [esi + 0x41], bl
mov ecx, edi
setne al
inc eax
push eax
call fcn.0043fe42
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x1c], 8
jb 0x441fb2
mov eax, dword [eax + 8]
jmp 0x441fb5
add eax, 8
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x20], eax
cmp eax, 0xffffffff
jne 0x441ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
cmp edi, ebx
je 0x441f0e
mov ecx, edi
call fcn.00440b86
push edi
call fcn.00466cfb
pop ecx
jmp 0x441f0e
cmp dword [esi + 0x20], 8
jb 0x442003
mov eax, dword [esi + 0xc]
jmp 0x442006
lea eax, [esi + 0xc]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x28], eax
cmp eax, 0xffffffff
jne 0x442039
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x20]
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x441fdd
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00408f7f
push ebx
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 0x20]
mov dword [edi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push dword [esi + 0x44]
mov ecx, esi
push dword [ebp + 0x28]
call fcn.0043ff4e
test eax, eax
jne 0x44207a
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x441fe5
mov eax, dword [esi + 0x74]
inc eax
push eax
lea eax, [ebp + 0x2c]
push eax
mov ecx, esi
call fcn.0043ff02
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x50]
lea eax, [ebp + 0x2c]
push eax
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push dword [ebp + 0x28]
mov ecx, esi
call fcn.0043ff4e
test eax, eax
je 0x441f0e
push dword [ebp + 0x28]
mov ecx, esi
call fcn.0043ff94
push dword [ebp + 0x28]
mov ecx, edi
mov dword [ebp + 0x24], eax
call fcn.00440bbe
test eax, eax
jne 0x44206c
mov ecx, edi
call fcn.0044021c
add eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x4c], eax
cmp ecx, ebx
je 0x4420f0
mov eax, dword [edi + 0x3c]
mov edx, dword [ecx]
push eax
push ebx
call dword [edx]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, esi
cmp byte [esi + 0x42], bl
jne 0x442109
push dword [ebp + 0x28]
push edi
push dword [ebp + 0x1c]
call fcn.00441216
mov dword [ebp + 0x24], eax
jmp 0x442154
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x28]
mov dword [ebp + 0x20], ebx
push edi
push dword [ebp + 0x1c]
call fcn.004410b0
mov eax, dword [ebp + 0x20]
push ebx
push ebx
push dword [ebp + 0x24]
mov ecx, esi
push dword [ebp + 0x28]
mov dword [edi + 0x3c], eax
call fcn.0043ff4e
push dword [ebp + 0x28]
mov ecx, edi
call fcn.00440bbe
mov dword [ebp + 0x24], eax
cmp eax, ebx
jne 0x44206c
push 2
push ebx
push ebx
push dword [ebp + 0x28]
mov ecx, esi
call fcn.0043ff4e
cmp dword [ebp + 0x24], ebx
jne 0x44206c
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x44216d
mov edi, dword [edi + 0x3c]
mov eax, dword [ecx]
push edi
push edi
call dword [eax]
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x7c]
call fcn.00441137
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x44]
call fcn.004411d9
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp]
push eax
lea ecx, [esi + 0x58]
call fcn.00441ce0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00440a9d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00440a7f
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 + 0x5c]
xor ecx, ebp
call fcn.00467491
add ebp, 0x60
leave
ret 0xc