Function at 0x44d022
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4578
call fcn.004656f0
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4544], ecx
cmp dword [ebp + 0x14], 3
je 0x44d05b
cmp dword [ebp + 0x14], 2
je 0x44d05b
cmp dword [ebp + 0x14], 1
je 0x44d05b
mov eax, 0x10000
jmp 0x44d562
cmp dword [ebp + 0x14], 3
jne 0x44d170
mov eax, dword [ebp - 0x4544]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x44d10d
mov eax, dword [ebp - 0x4544]
cmp dword [eax + 4], 0xffffffff
je 0x44d091
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451d6b
pop ecx
mov eax, dword [ebp - 0x4544]
or dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 0x4544]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x44d0b5
mov eax, 0x10000
jmp 0x44d562
mov eax, dword [ebp - 0x4544]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x44d0d3
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451e41
pop ecx
mov eax, dword [ebp - 0x4544]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp + 8]
jge 0x44d0f3
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451eb6
pop ecx
jmp 0x44d0d3
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.004520f1
pop ecx
mov eax, dword [ebp - 0x4544]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.004524ee
add esp, 0xc
mov dword [ebp - 0x4560], eax
cmp dword [ebp - 0x4560], 0
jle 0x44d13c
mov eax, 0x600
jmp 0x44d562
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451d6b
pop ecx
mov eax, dword [ebp - 0x4544]
or dword [eax + 4], 0xffffffff
cmp dword [ebp - 0x4560], 0
jne 0x44d166
xor eax, eax
jmp 0x44d562
mov eax, 0x5000000
jmp 0x44d562
mov eax, dword [ebp - 0x4544]
cmp dword [eax + 4], 0xffffffff
je 0x44d18a
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451d6b
pop ecx
mov eax, dword [ebp - 0x4544]
or dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 0x4544]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x44d1ae
mov eax, 0x10000
jmp 0x44d562
mov eax, dword [ebp - 0x4544]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x44d1cc
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451e41
pop ecx
mov eax, dword [ebp - 0x4544]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp + 8]
jge 0x44d1ec
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451eb6
pop ecx
jmp 0x44d1cc
lea eax, [ebp - 0x4540]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x4544]
call fcn.0044c625
mov eax, dword [ebp - 0x4438]
and eax, 0x10
je 0x44d255
cmp dword [ebp + 0x14], 1
jne 0x44d219
xor eax, eax
jmp 0x44d562
push 0x103
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x453c]
push eax
call fcn.0044ce82
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x4544]
add eax, 0x138
push eax
call fcn.0044c2da
pop ecx
pop ecx
xor eax, eax
jmp 0x44d562
cmp dword [ebp + 0x14], 1
jne 0x44d269
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x454c], eax
jmp 0x44d42b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4554], eax
mov eax, dword [ebp - 0x4554]
mov dword [ebp - 0x4550], eax
mov eax, dword [ebp - 0x4550]
movzx eax, word [eax]
test eax, eax
je 0x44d2c5
mov eax, dword [ebp - 0x4550]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x44d2a7
mov eax, dword [ebp - 0x4550]
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x44d2b5
mov eax, dword [ebp - 0x4550]
inc eax
inc eax
mov dword [ebp - 0x4554], eax
mov eax, dword [ebp - 0x4550]
inc eax
inc eax
mov dword [ebp - 0x4550], eax
jmp 0x44d27e
mov eax, dword [ebp - 0x4554]
cmp eax, dword [ebp + 0xc]
je 0x44d409
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.00464609
pop ecx
pop ecx
mov eax, dword [ebp - 0x4554]
sub eax, dword [ebp + 0xc]
sar eax, 1
lea eax, [eax + eax - 2]
mov dword [ebp - 0x455c], eax
cmp dword [ebp - 0x455c], 0x208
jae 0x44d308
jmp 0x44d30d
call fcn.004650c3
xor eax, eax
mov ecx, dword [ebp - 0x455c]
mov word [ebp + ecx - 0x20c], ax
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x20c]
cmp eax, 0x2f
je 0x44d35f
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x20c]
cmp eax, 0x5c
je 0x44d35f
push 2
pop eax
shl eax, 0
movzx eax, word [ebp + eax - 0x20c]
cmp eax, 0x3a
je 0x44d35f
and dword [ebp - 0x4564], 0
jmp 0x44d369
mov dword [ebp - 0x4564], 1
mov al, byte [ebp - 0x4564]
mov byte [ebp - 0x4546], al
push 0x47e318
lea eax, [ebp - 0x20c]
push eax
call fcn.0041afa1
pop ecx
pop ecx
test eax, eax
je 0x44d398
mov dword [ebp - 0x456c], 1
jmp 0x44d39f
and dword [ebp - 0x456c], 0
push 0x47e320
lea eax, [ebp - 0x20c]
push eax
call fcn.0041afa1
pop ecx
pop ecx
test eax, eax
je 0x44d3c2
mov dword [ebp - 0x4568], 1
jmp 0x44d3c9
and dword [ebp - 0x4568], 0
movzx eax, byte [ebp - 0x4546]
mov ecx, dword [ebp - 0x456c]
or ecx, dword [ebp - 0x4568]
or eax, ecx
mov byte [ebp - 0x4546], al
movzx eax, byte [ebp - 0x4546]
test eax, eax
jne 0x44d409
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x4544]
add eax, 0x138
push eax
call fcn.0044c2da
pop ecx
pop ecx
push 0
push dword [ebp - 0x4438]
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x454c], eax
cmp dword [ebp - 0x454c], 0xffffffff
jne 0x44d43e
mov eax, 0x200
jmp 0x44d562
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.004520f1
pop ecx
mov byte [ebp - 0x4545], 0
push 0x4000
lea eax, [ebp - 0x4414]
push eax
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.004524ee
add esp, 0xc
mov dword [ebp - 0x4558], eax
cmp dword [ebp - 0x4558], 0
jge 0x44d487
mov byte [ebp - 0x4545], 1
jmp 0x44d4ce
cmp dword [ebp - 0x4558], 0
jne 0x44d492
jmp 0x44d4ce
push 0
lea eax, [ebp - 0x4578]
push eax
push dword [ebp - 0x4558]
lea eax, [ebp - 0x4414]
push eax
push dword [ebp - 0x454c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4570], eax
cmp dword [ebp - 0x4570], 0
jne 0x44d4cc
mov byte [ebp - 0x4545], 1
jmp 0x44d4ce
jmp 0x44d453
mov byte [ebp - 0x4547], 0
push dword [ebp - 0x454c]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0x4574], eax
cmp dword [ebp - 0x4574], 1
jne 0x44d502
movzx eax, byte [ebp - 0x4545]
test eax, eax
jne 0x44d502
mov byte [ebp - 0x4547], 1
movzx eax, byte [ebp - 0x4547]
test eax, eax
je 0x44d52e
lea eax, [ebp - 0x4424]
push eax
lea eax, [ebp - 0x4434]
push eax
lea eax, [ebp - 0x442c]
push eax
push dword [ebp - 0x454c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x44d540
push dword [ebp - 0x454c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4544]
push dword [eax]
call fcn.00451d6b
pop ecx
movzx eax, byte [ebp - 0x4545]
test eax, eax
je 0x44d560
mov eax, 0x400
jmp 0x44d562
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004607fb
mov esp, ebp
pop ebp
ret 0x10