Function at 0x44f280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0xffffffff
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x64c], esi
je 0x44f2ae
mov edi, dword [ebx]
call fcn.0044e8b0
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
mov dword [ebx + 4], 0xffffffff
cmp edi, dword [eax + 4]
jl 0x44f2d7
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 8
cmp edi, dword [eax + 0x10]
jge 0x44f2e9
mov esi, eax
call fcn.0044e260
mov esi, dword [ebp - 0x64c]
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jge 0x44f343
mov esi, dword [ebx]
test esi, esi
je 0x44f336
cmp dword [esi + 0x18], 0
je 0x44f336
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x44f336
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
xor eax, eax
mov ecx, esi
call fcn.0044e000
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebx]
cmp dword [ecx + 0x10], edi
jl 0x44f2f0
mov esi, dword [ebp - 0x64c]
lea edx, [ebp - 0x648]
push edx
push edi
mov ecx, ebx
call fcn.0044eb30
test byte [ebp - 0x43c], 0x10
movzx eax, word [esi]
je 0x44f3bb
cmp ax, 0x2f
je 0x44f376
cmp ax, 0x5c
je 0x44f376
test ax, ax
je 0x44f396
cmp word [esi + 2], 0x3a
jne 0x44f396
push esi
push 0
call fcn.0044f150
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 8
push esi
add ebx, 0x244
push ebx
call fcn.0044f150
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 8
mov edi, esi
mov ecx, esi
test ax, ax
je 0x44f3e2
movzx eax, ax
cmp ax, 0x2f
je 0x44f3d3
cmp ax, 0x5c
jne 0x44f3d6
lea edi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x44f3c7
lea edx, [ebp - 0x210]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x44f3f0
cmp edi, esi
jne 0x44f488
xor eax, eax
mov word [ebp - 0x210], ax
push edi
lea eax, [ebp - 0x210]
push eax
lea esi, [ebx + 0x244]
push esi
lea ecx, [ebp - 0x418]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0x210]
push edx
push esi
call fcn.0044f150
add esp, 8
mov eax, dword [ebp - 0x43c]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44f4f2
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
sub ecx, esi
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x210], dx
mov ax, word [ebp - 0x210]
cmp ax, 0x2f
je 0x44f4c2
cmp ax, 0x5c
je 0x44f4c2
test ax, ax
je 0x44f410
cmp word [ebp - 0x20e], 0x3a
jne 0x44f410
push edi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push 0x511844
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x210]
push edx
push 0
call fcn.0044f150
add esp, 0x18
jmp 0x44f444
mov edx, dword [ebx + 0x23c]
mov eax, dword [ebx]
push edx
push eax
call fcn.0044e4d0
add esp, 8
cmp dword [ebx + 0x240], 0
jne 0x44f520
push 0x4000
call fcn.00450241
add esp, 4
mov dword [ebx + 0x240], eax
mov dword [ebp - 0x64c], 0
lea ebx, [ebx]
mov edx, dword [ebx + 0x240]
mov eax, dword [ebx]
lea ecx, [ebp - 0x64d]
push ecx
push edx
mov ecx, 0x4000
call fcn.0044e650
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x44f58f
test esi, esi
jl 0x44f583
jle 0x44f576
mov ecx, dword [ebx + 0x240]
push 0
lea eax, [ebp - 0x654]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44f59b
cmp byte [ebp - 0x64d], 0
jne 0x44f5a7
test esi, esi
jne 0x44f530
mov dword [ebp - 0x64c], 0x5000000
jmp 0x44f5c3
mov dword [ebp - 0x64c], 0x1000
jmp 0x44f5c3
mov dword [ebp - 0x64c], 0x400
jmp 0x44f5c3
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x430]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx]
call fcn.0044e8b0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x64c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 8