Function at 0x44d71c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x18]
movzx ecx, word [ecx + 2]
push ebx
push ebp
push esi
push edi
lea edx, [ecx + ecx*4]
mov ecx, dword [eax + 0x20]
push 2
push 0
lea ebx, [ecx + edx*8 - 0x28]
mov edx, dword [eax + 4]
push 0
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x45c4f4]
mov edx, dword [ecx + 0x18]
mov eax, dword [0x45c4f0]
movzx edx, word [edx + 2]
mov edi, dword [ecx + 0x1c]
mov esi, dword [eax]
mov edi, dword [edi + 0x20]
sub esi, dword [ebx + 0x14]
mov ebp, dword [ecx + 0x20]
mov dword [esp + 0x24], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0
test edx, edx
jbe 0x44d885
add ebp, 8
mov dword [esp + 0x14], ebp
jmp 0x44d7a2
mov ecx, dword [0x45c4f4]
mov ecx, dword [ecx + 0xc]
mov ebx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 4]
push ebx
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
cmp ebx, eax
jne 0x44db3c
add esi, eax
mov eax, dword [ebp]
cmp eax, ebx
jbe 0x44d819
sub eax, ebx
mov ebp, eax
push ebp
call fcn.0044d50c
push ebp
push 0
push eax
mov dword [esp + 0x28], eax
call fcn.0045086c
mov ecx, dword [esp + 0x28]
mov edx, dword [0x45c4f0]
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [edx + 4]
push ebp
push ecx
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044d53c
add esi, dword [esp + 0x14]
add esp, 4
add ebx, ebp
mov ebp, dword [esp + 0x14]
mov eax, ebx
mov ebx, dword [esp + 0x24]
xor edx, edx
div ebx
test edx, edx
je 0x44d862
sub ebx, edx
push ebx
call fcn.0044d50c
push ebx
mov ebp, eax
push 0
push ebp
call fcn.0045086c
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 4]
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
push ecx
call edi
push ebp
call fcn.0044d53c
mov ebp, dword [esp + 0x18]
add esp, 4
add esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x28
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [0x45c4f0]
mov dword [esp + 0x14], ebp
jb 0x44d79c
mov ebx, dword [esp + 0x20]
mov ecx, dword [eax + 0x1c]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 4]
push 0xe0
push ecx
push edx
call edi
add esi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 0x3c]
mov eax, dword [eax + 0xc]
mov ecx, dword [0x45c4f0]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call edi
mov eax, dword [0x45c4f8]
add esi, dword [esp + 0x10]
push eax
call fcn.0044d50c
mov ecx, dword [0x45c4f8]
push ecx
mov ebp, eax
push 0
push ebp
call fcn.0045086c
mov eax, dword [0x45c4f8]
mov ecx, dword [0x45c4f0]
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 4]
push eax
push ebp
push edx
call edi
push ebp
call fcn.0044d53c
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 4]
add esi, dword [esp + 0x14]
add esp, 4
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ebp, [ebx + 8]
push ebp
push edx
call edi
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 4]
add esi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x14]
push eax
push 4
add ebx, 0x10
push ebx
push edx
mov dword [esp + 0x3c], ebx
call edi
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 4]
add esi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x14]
push eax
push 1
push 0x45c4fc
push edx
call edi
add esi, dword [esp + 0x10]
mov dword [ebp], esi
mov eax, dword [0x45c4f0]
mov eax, dword [eax + 0x1c]
add eax, 0x60
xor ecx, ecx
lea esp, [esp]
mov edx, dword [eax + ecx*8]
test edx, edx
jne 0x44d989
cmp dword [eax + ecx*8 + 4], edx
je 0x44d9a6
mov ebx, dword [0x45c4f0]
mov ebx, dword [ebx + 0x1c]
cmp edx, dword [ebx + 0x3c]
jae 0x44d9a6
mov dword [eax + ecx*8], 0
mov dword [eax + ecx*8 + 4], 0
inc ecx
cmp ecx, 0x10
jb 0x44d97c
mov ecx, dword [0x45c4f4]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x68]
mov edx, dword [0x45c4f0]
mov edx, dword [edx + 0x1c]
mov eax, dword [esp + 0x30]
add ecx, eax
mov dword [edx + 0x68], ecx
mov ecx, dword [0x45c4f4]
mov edx, dword [ecx + 0x1c]
mov edx, dword [edx + 0x6c]
mov ecx, dword [0x45c4f0]
mov ecx, dword [ecx + 0x1c]
mov dword [ecx + 0x6c], edx
mov ecx, dword [0x45c4f4]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x88]
mov edx, dword [0x45c4f0]
add ecx, eax
mov eax, dword [edx + 0x1c]
mov dword [eax + 0x88], ecx
mov ecx, dword [0x45c4f4]
mov edx, dword [ecx + 0x1c]
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edx + 0x8c]
mov dword [ecx + 0x8c], edx
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx + 0x24]
xor edx, edx
mov eax, esi
div ecx
mov edx, dword [esp + 0x28]
inc eax
imul eax, ecx
mov dword [edx], eax
sub eax, dword [ebp]
mov esi, eax
push esi
call fcn.0044d50c
push esi
mov ebx, eax
push 0
push ebx
call fcn.0045086c
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 4]
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push edx
call edi
push ebx
call fcn.0044d53c
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x1c]
mov esi, dword [ecx + 0x20]
mov eax, dword [ebp]
xor edx, edx
div esi
mov edx, dword [esp + 0x24]
add esp, 4
inc eax
imul eax, esi
add eax, dword [edx + 0xc]
mov dword [ecx + 0x38], eax
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0x1c]
mov dword [ecx + 0x40], 0
mov edx, dword [0x45c4f4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x45c4f0]
add ecx, dword [esp + 0x30]
mov eax, dword [edx + 0x1c]
mov dword [eax + 0x10], ecx
mov eax, dword [0x45c4f0]
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
xor edi, edi
xor ecx, ecx
cmp di, word [esi + 2]
jae 0x44daf6
add edx, 0x24
jmp 0x44dadc
or dword [edx], 0x80000000
mov eax, dword [0x45c4f0]
mov esi, dword [eax + 0x18]
movzx esi, word [esi + 2]
inc ecx
add edx, 0x28
cmp ecx, esi
jb 0x44dadc
mov ecx, dword [eax + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov edx, dword [0x45c4f0]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [0x45c4f0]
mov edx, dword [ecx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 4]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret