Function at 0x10038a5f
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
sub esp, 0x864
lea ebp, [esp - 4]
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x864], eax
push 0x24
mov eax, 0x100cf78b
call fcn.10071ffd
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x226]
mov esi, ecx
push ebx
push eax
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x14], 1
mov word [ebp + 0x224], bx
call fcn.10072750
add esp, 0xc
push 9
pop ecx
mov word [ebp + 0x83c], bx
xor eax, eax
lea edi, [ebp + 0x83e]
rep stosd dword es:[edi], eax
push 0x100de780
lea ecx, [ebp - 0x30]
stosw word es:[edi], ax
call fcn.10001580
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call fcn.1001f15a
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10001770
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10038afd
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x83c]
push 0x100d6110
push eax
call fcn.100048d5
lea eax, [ebp + 0x224]
push str.__dongfang__
push eax
call fcn.10072c5d
lea eax, [ebp + 0x83c]
push eax
lea eax, [ebp + 0x224]
push eax
call fcn.10072c33
add esp, 0x1c
lea eax, [ebp + 0x224]
push eax
push 1
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10038da8
lea eax, [ebp + 0x224]
push eax
push 0x5d8c
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10038da8
mov edi, 0x206
push edi
lea eax, [ebp + 0x1e]
push ebx
push eax
mov word [ebp + 0x1c], bx
call fcn.10072750
push edi
lea eax, [ebp + 0x42e]
push ebx
push eax
mov word [ebp + 0x42c], bx
call fcn.10072750
push edi
lea eax, [ebp + 0x636]
push ebx
push eax
mov word [ebp + 0x634], bx
call fcn.10072750
add esp, 0x24
lea eax, [ebp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x83c]
push eax
push str.DongFang
push str.DongFangInput
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x42c]
push str._s_s_s_s
push eax
call fcn.100048d5
lea eax, [ebp + 0x634]
push str.__dongfang__
push eax
call fcn.10072c5d
lea eax, [ebp + 0x634]
push str.TEMP__
push eax
call fcn.10072c33
lea eax, [ebp + 0x83c]
push eax
lea eax, [ebp + 0x634]
push eax
call fcn.10072c33
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
add esp, 0x30
xor eax, eax
lea ecx, [ebp + 0x634]
inc eax
push ecx
push eax
push 0xf001f
mov dword [esi + 0x14], eax
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10038da8
lea eax, [ebp + 0x634]
push eax
push 1
push 6
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10038da8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 4
push ebx
push 3
push 0x10000000
lea eax, [ebp + 0x42c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x10038cbe
push ebx
push 1
lea ecx, [ebp]
call fcn.100017f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x864]
xor ecx, ebp
call fcn.10071fee
add ebp, 0x868
leave
ret
lea ecx, [ebp + 0x634]
push ecx
push 0x5d8c
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10038d9f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x83c]
push eax
push str.DongFang
push str.DongFangInput
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x42c]
push str._s_s_s_s_d
push eax
call fcn.100048d5
add esp, 0x1c
push ebx
push 0x80
push 4
push ebx
push 3
push 0x10000000
lea eax, [ebp + 0x42c]
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x10038c8e
push dword [ebp - 0x10]
lea eax, [ebp + 0x83c]
push eax
push str.__dongfang__
lea eax, [ebp + 0x634]
push str._s_s_d
push eax
call fcn.100048d5
add esp, 0x14
lea eax, [ebp + 0x634]
push eax
push 0x5d8c
push ebx
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10038d8c
xor esi, esi
push ebx
push 1
lea ecx, [ebp]
call fcn.100017f0
mov eax, esi
jmp 0x10038c9b
push 5
push ebx
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
jmp 0x10038da2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10038de5
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x10038dd9
cmp dword [ebp - 0x14], ebx
mov dword [esi + 0x28], eax
jne 0x10038dd4
mov ecx, eax
call fcn.10036694
xor esi, esi
inc esi
jmp 0x10038d7a
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], ebx
push 0x5d8c
call fcn.1004ed11
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x10038e04
mov ecx, eax
call fcn.10035790
jmp 0x10038e06
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [esi + 0x28], eax
call fcn.10036694
jmp 0x10038d78