Function at 0x957a90
Capabilities:
Get file size
Move file

Disassembly:
mov eax, 0x24a0
call fcn.00a91950
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x249c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24ac]
push esi
push edi
push 0xa27
lea eax, [esp + 0x105d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x1064], 0
call fcn.00a7ffb0
add esp, 0xc
push 0xa27
lea ecx, [esp + 0x235]
push 0
push ecx
mov byte [esp + 0x23c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0xa27
lea edx, [esp + 0x1a85]
push 0
push edx
mov byte [esp + 0x1a8c], 0
call fcn.00a7ffb0
add esp, 0xc
cmp dword [0xb32da4], 0xffffffff
jne 0x957b3c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xb32da4
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.009691d0
add esp, 0x20
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebp, ebp
je 0x957b51
push ebp
lea eax, [esp + 0x105c]
push eax
call edi
push esi
lea ecx, [esp + 0x234]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor esi, esi
push 5
cmp ebp, esi
je 0x957b7c
lea edx, [esp + 0x105c]
push edx
lea eax, [esp + 0x238]
push eax
jmp 0x957b85
push esi
lea ecx, [esp + 0x238]
push ecx
call ebx
cmp eax, esi
jne 0x957f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x230]
cmp dword [0xb32da4], esi
je 0x957d72
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
test eax, eax
jle 0x957c21
movsx eax, byte [esp + esi + 0x230]
lea ecx, [eax + 1]
cmp ecx, 0x100
ja 0x957c12
push eax
call fcn.00a79423
add esp, 4
test eax, eax
je 0x957c12
movsx edx, byte [esp + esi + 0x230]
push edx
call fcn.00a794a4
add esp, 4
test eax, eax
je 0x957bfa
movsx eax, byte [esp + esi + 0x230]
push eax
call fcn.00a7b36c
jmp 0x957c08
movsx ecx, byte [esp + esi + 0x230]
push ecx
call fcn.00a7c649
mov byte [esp + esi + 0x234], al
add esp, 4
lea edx, [esp + 0x230]
push edx
inc esi
call edi
cmp esi, eax
jl 0x957bb5
test ebp, ebp
je 0x957cc0
lea eax, [esp + 0x1058]
push eax
xor esi, esi
call edi
test eax, eax
jle 0x957cac
lea esp, [esp]
movsx eax, byte [esp + esi + 0x1058]
lea ecx, [eax + 1]
cmp ecx, 0x100
ja 0x957c9d
push eax
call fcn.00a79423
add esp, 4
test eax, eax
je 0x957c9d
movsx edx, byte [esp + esi + 0x1058]
push edx
call fcn.00a794a4
add esp, 4
test eax, eax
je 0x957c85
movsx eax, byte [esp + esi + 0x1058]
push eax
call fcn.00a7b36c
jmp 0x957c93
movsx ecx, byte [esp + esi + 0x1058]
push ecx
call fcn.00a7c649
mov byte [esp + esi + 0x105c], al
add esp, 4
lea edx, [esp + 0x1058]
push edx
inc esi
call edi
cmp esi, eax
jl 0x957c40
push 5
lea eax, [esp + 0x105c]
push eax
lea ecx, [esp + 0x238]
push ecx
jmp 0x957ccc
push 5
push 0
lea edx, [esp + 0x238]
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x957d6b
push 0x207
push eax
mov byte [esp + 0x30], al
lea eax, [esp + 0x31]
push eax
call fcn.00a7ffb0
add esp, 0xc
push 0x207
lea ecx, [esp + 0xc5d]
push esi
push ecx
mov byte [esp + 0xc64], 0
call fcn.00a7ffb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x230]
push edx
mov edi, eax
lea eax, [esp + 0x2c]
push str.___s
push eax
call fcn.00a78f30
add esp, 0xc
test ebp, ebp
je 0x957d59
lea ecx, [esp + 0x1058]
push ecx
lea edx, [esp + 0xc5c]
push str.____s
push edx
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0xc58]
jmp 0x957d5b
xor edx, edx
lea ecx, [esp + 0x28]
call fcn.00980d20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x957f77
push 0xa28
lea ecx, [esp + 0x1a84]
mov dword [esp + 0x14], esi
call fcn.009580e0
add esp, 4
test eax, eax
je 0x957da0
lea eax, [esp + 0x1a80]
push eax
lea ecx, [esp + 0x234]
push ecx
call edi
push 0x3ff
lea edx, [esp + 0xc5d]
push esi
push edx
mov byte [esp + 0xc64], 0
call fcn.00a7ffb0
add esp, 0xc
mov eax, 0xaea3c0
cmp ebp, esi
je 0x957dce
lea eax, [esp + 0x1058]
lea ecx, [esp + 0x230]
push ecx
push eax
lea edx, [esp + 0xc60]
push str._hs_hs_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0xaea3d4]
mov dx, word [0xaea3d8]
mov ebx, eax
mov eax, dword [str._Rename__r_n]
push 0x103
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov al, byte [0xaea3da]
lea ecx, [esp + 0x3d]
push 0
push ecx
mov word [esp + 0x40], dx
mov byte [esp + 0x42], al
call fcn.00a7ffb0
add esp, 0x1c
mov edi, 0x104
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], 0
call fcn.00958630
push str.WinInit.Ini
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x8000080
push 4
push 0
push 0xc0000000
lea edi, [esp + 0x38]
call fcn.0094db00
mov esi, eax
add esp, 0x10
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x957e77
xor eax, eax
jmp 0x957f77
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebp, eax
lea eax, [ebx + ebp + 0xa]
push eax
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x957f56
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x957f4c
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x957ed8
add eax, edi
mov dword [esp + 0x10], eax
jne 0x957ef5
lea edx, [esp + 0x1c]
push edx
lea eax, [edi + ebp]
push 0xaa1544
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebp, eax
mov eax, ebp
jmp 0x957f27
push 0xa
push eax
call fcn.00a7a2c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x957f0a
mov esi, dword [esp + 0x10]
inc esi
mov ecx, edi
sub ecx, esi
add ecx, ebp
push ecx
lea edx, [esi + ebx]
push esi
push edx
call fcn.00a7be50
add esp, 0xc
sub esi, edi
mov eax, esi
mov esi, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0xc5c]
push ecx
add eax, edi
push eax
call fcn.00a828e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add ebp, ebx
mov dword [esp + 0x10], 1
lea edx, [esp + 0x18]
push edx
call fcn.00985290
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0x14]
push eax
call fcn.00985290
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x24a0
ret 4