Function at 0x72a63770
Capabilities:
Get file size
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov eax, dword [edi + 0x34]
mov dword [esp], eax
call esi
lea ebx, [eax + eax + 2]
mov eax, dword [edi + 0x5c]
movzx ecx, word [eax + 0x44]
movzx eax, word [eax + 0x46]
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x58]
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x38], eax
test byte [0x72a765e8], 8
jne 0x72a63b00
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x72a63cc0
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x72a63853
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x72a6386d
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x24], 0
test eax, eax
je 0x72a63887
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x72a638a1
mov dword [esp], eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
lea eax, [ebx + eax + 0x78]
add eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [ebp - 0x48], eax
call sym._DllAllocSplMem_4
sub esp, 4
mov esi, eax
test eax, eax
je 0x72a63b44
mov dword [eax], 0x4968
mov dword [eax + 4], 0x78
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
lea eax, [edi + 0x18]
mov dword [esp + 4], eax
lea eax, [esi + 0x3c]
mov dword [esp + 8], 0x10
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._wcsrchr
mov dword [esp + 4], str..SPL
mov dword [esp], eax
call sym._wcscpy
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
je 0x72a6399b
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetFileSize_8
mov dword [esi + 0x74], eax
sub esp, 8
mov dword [esp + 8], ebx
mov eax, dword [edi + 0x34]
add ebx, 0x78
mov dword [esp + 4], eax
lea eax, [esi + 0x78]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x34], 0x78
mov dword [esp + 8], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x2c], ebx
add ebx, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x28], ebx
add ebx, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x58]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x70], ebx
add ebx, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x24], ebx
add ebx, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x30], ebx
add ebx, dword [ebp - 0x38]
test eax, eax
jne 0x72a63c20
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x72a63c4a
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x72a63bd0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x72a63bfa
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x72a63b70
mov ebx, 1
mov dword [esp], esi
call sym._DllFreeSplMem_4
mov eax, dword [ebp - 0x40]
sub esp, 4
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
cmp dword [ebp - 0x44], 0xffffffff
je 0x72a63aee
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], str.WriteJobShadowFile__S___p__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x528
mov dword [esp + 0xc], str.WriteJobShadowFile
mov dword [esp + 8], 0x72a77301
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x72a637ef
test byte [0x72a765e8], 2
jne 0x72a63c80
mov eax, dword [ebp - 0x40]
xor ebx, ebx
mov dword [esp], eax
call sym._CloseHandle_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x72a765e8], 2
je 0x72a63ac1
call sym._GetLastError_0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], str.WriteFile_failed_with_error__lu_for_file___S___n
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0x598
mov dword [esp + 0xc], str.WriteJobShadowFile
mov dword [esp + 8], 0x72a77301
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a63ac1
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x38], ebx
add ebx, dword [ebp - 0x24]
test eax, eax
je 0x72a63a8a
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov dword [esi + 0x14], ebx
jmp 0x72a63a8a
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x1c], ebx
add ebx, dword [ebp - 0x1c]
test ecx, ecx
je 0x72a63a74
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 4], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sym._memmove
mov edx, dword [ebp - 0x24]
mov dword [esi + 0x18], ebx
add ebx, dword [ebp - 0x20]
test edx, edx
je 0x72a63a7f
jmp 0x72a63bd0
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], str.DllAllocSplMem_failed_for_file___S___n
mov dword [esp + 0x10], 0x545
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.WriteJobShadowFile
mov dword [esp + 8], 0x72a77301
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a63b51
xor ebx, ebx
test byte [0x72a765e8], 2
je 0x72a63aee
call sym._GetLastError_0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], str.CreateFileW_failed_with_error__lu_for_file___S___n
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0x52e
mov dword [esp + 0xc], str.WriteJobShadowFile
mov dword [esp + 8], 0x72a77301
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a63aee