Function at 0x1074979
Capabilities:
Move file
Write file on windows

Disassembly:
mov eax, 0x109a419
call fcn.01077478
sub esp, 0x18
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push ebx
push esi
push edi
mov esi, ecx
je 0x10749bc
test byte [eax + 0x1c], 1
je 0x10749bc
cmp byte [eax + 0x19], 5
jb 0x10749bc
push dword [esi + 0xc]
mov ebx, 0x1007f1c
push esi
push ebx
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102b959
jmp 0x10749c1
mov ebx, 0x1007f1c
and dword [ebp - 0x10], 0
mov edi, 0x10a8b2c
push edi
lea ecx, [ebp - 0x18]
call fcn.01020db5
mov edx, dword [esi + 0x20]
and dword [ebp - 4], 0
cmp edx, 4
je 0x1074a22
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x8007139f
mov dword [ebp - 0x10], ecx
je 0x1074d4a
test byte [eax + 0x1c], 0x10
je 0x1074d16
cmp byte [eax + 0x19], 2
jb 0x1074d16
push ecx
push edx
push esi
push ecx
push ebx
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106ae69
jmp 0x1074d11
lea eax, [esi + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x1074a6f
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x80070057
mov dword [ebp - 0x10], ecx
je 0x1074d4a
test byte [eax + 0x1c], 0x10
je 0x1074d16
cmp byte [eax + 0x19], 2
jb 0x1074d16
push ecx
push esi
push ecx
push ebx
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
jmp 0x1074d11
push eax
lea ecx, [ebp - 0x18]
call fcn.0100a6f4
push 0x1007f5c
lea ecx, [ebp - 0x18]
call fcn.0100a88e
push 0x1007f54
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x1074ae1
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x8007006e
mov dword [ebp - 0x10], ecx
je 0x1074c75
test byte [eax + 0x1c], 0x10
je 0x1074c75
cmp byte [eax + 0x19], 2
jb 0x1074c75
push ecx
push dword [ebp - 0x18]
push esi
push ecx
push ebx
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104a962
jmp 0x1074c70
push edi
lea ecx, [ebp - 0x1c]
call fcn.01020db5
and dword [ebp - 0x20], 0
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0100a6f4
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
mov dword [esi + 0x20], 3
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push 1
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1074b43
push dword [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call ebx
add esp, 0x10
cmp eax, 1
je 0x1074b82
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x8007001d
mov dword [ebp - 0x10], ecx
je 0x1074b8c
test byte [eax + 0x1c], 0x10
je 0x1074b8c
cmp byte [eax + 0x19], 2
jb 0x1074b8c
movzx edx, word [ebp - 0x20]
push ecx
push dword [ebp - 0x1c]
push edx
push esi
push ecx
push 0x1007f1c
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102d5aa
jmp 0x1074b8c
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.01009cd1
cmp dword [ebp - 0x10], 0
jl 0x1074c6b
push edi
lea ecx, [ebp - 0x20]
call fcn.01020db5
and dword [ebp - 0x1c], 0
lea ebx, [esi + 0x28]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0104bc7a
test eax, eax
mov dword [ebp - 0x24], eax
je 0x1074c60
cmp dword [ebp - 0x10], 0
jl 0x1074c60
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0104df8b
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
push 1
push dword [edi]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0107469f
mov dword [ebp - 0x10], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1074c49
test byte [eax + 0x1c], 0x10
je 0x1074c49
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1074c49
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [edi]
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x10]
push 0x1007f1c
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a55b
cmp dword [ebp - 0x10], 0x8007000d
jne 0x1074c56
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x24], 0
jne 0x1074bcb
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ebx, 0x1007f1c
mov eax, dword [0x10a6184]
cmp dword [ebp - 0x14], 0
je 0x1074ca4
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_fclose]
cmp dword [ebp - 0x10], 0
pop ecx
mov dword [esi + 0x20], 4
jl 0x1074d11
and dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
mov eax, dword [0x10a6184]
cmp dword [ebp - 0x10], 0
jl 0x1074d16
mov eax, dword [esi + 0xc]
push 1
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1074d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov dword [ebp - 0x10], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1074d4a
test byte [eax + 0x1c], 0x10
je 0x1074d16
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1074d16
push dword [ebp - 0x10]
push 1
push dword [esi + 0xc]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
push ebx
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01073b81
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1074d4a
test byte [eax + 0x1c], 1
je 0x1074d4a
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1074d4a
push dword [ebp - 0x10]
push ebx
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret