Function at 0x100423c0
Capabilities:
Get file size
Move file

Disassembly:
mov eax, 0x249c
call fcn.10126240
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x2498], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24a8]
push esi
push edi
push 0xa27
lea eax, [esp + 0x105d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x1064], 0
call fcn.10116880
push 0xa27
lea ecx, [esp + 0x241]
push 0
push ecx
mov byte [esp + 0x248], 0
call fcn.10116880
push 0xa27
lea edx, [esp + 0x1a9d]
push 0
push edx
mov byte [esp + 0x1aa4], 0
call fcn.10116880
add esp, 0x24
cmp dword [0x1017e8ec], 0xffffffff
jne 0x10042466
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1017e8ec
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.10050110
add esp, 0x20
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebp, ebp
je 0x1004247b
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 0x100424a6
lea edx, [esp + 0x105c]
push edx
lea eax, [esp + 0x238]
push eax
jmp 0x100424af
push esi
lea ecx, [esp + 0x238]
push ecx
call ebx
cmp eax, esi
jne 0x100428ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1017e8ec], esi
je 0x100426e0
jmp 0x100424d0
cmp byte [esp + 0x230], 0
lea eax, [esp + 0x230]
je 0x100424e7
inc eax
cmp byte [eax], 0
jne 0x100424e1
lea edx, [esp + 0x230]
sub eax, edx
cmp esi, eax
jae 0x1004256d
movsx eax, byte [esp + esi + 0x230]
lea ecx, [eax + 1]
cmp ecx, 0x100
ja 0x10042567
push eax
call fcn.1010e533
add esp, 4
test eax, eax
je 0x10042567
movsx eax, byte [esp + esi + 0x230]
lea edx, [eax + 1]
cmp edx, 0x100
ja 0x1004254f
push eax
call fcn.1010e5b4
add esp, 4
test eax, eax
je 0x1004254f
movsx eax, byte [esp + esi + 0x230]
push eax
call fcn.1010f665
mov byte [esp + esi + 0x234], al
add esp, 4
inc esi
jmp 0x100424d0
movsx ecx, byte [esp + esi + 0x230]
push ecx
call fcn.10110cf8
mov byte [esp + esi + 0x234], al
add esp, 4
inc esi
jmp 0x100424d0
test ebp, ebp
je 0x10042631
xor esi, esi
jmp 0x10042580
cmp byte [esp + 0x1058], 0
lea eax, [esp + 0x1058]
je 0x10042597
inc eax
cmp byte [eax], 0
jne 0x10042591
lea edx, [esp + 0x1058]
sub eax, edx
cmp esi, eax
jae 0x1004261d
movsx eax, byte [esp + esi + 0x1058]
lea ecx, [eax + 1]
cmp ecx, 0x100
ja 0x10042617
push eax
call fcn.1010e533
add esp, 4
test eax, eax
je 0x10042617
movsx eax, byte [esp + esi + 0x1058]
lea edx, [eax + 1]
cmp edx, 0x100
ja 0x100425ff
push eax
call fcn.1010e5b4
add esp, 4
test eax, eax
je 0x100425ff
movsx eax, byte [esp + esi + 0x1058]
push eax
call fcn.1010f665
mov byte [esp + esi + 0x105c], al
add esp, 4
inc esi
jmp 0x10042580
movsx ecx, byte [esp + esi + 0x1058]
push ecx
call fcn.10110cf8
mov byte [esp + esi + 0x105c], al
add esp, 4
inc esi
jmp 0x10042580
push 5
lea edx, [esp + 0x105c]
push edx
lea eax, [esp + 0x238]
push eax
jmp 0x1004263d
push 5
push 0
lea ecx, [esp + 0x238]
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x100426d9
push 0x207
push eax
lea edx, [esp + 0x31]
push edx
mov byte [esp + 0x34], al
call fcn.10116880
push 0x207
lea eax, [esp + 0xc69]
push esi
push eax
mov byte [esp + 0xc70], 0
call fcn.10116880
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x2c]
push 0x101523cc
push edx
mov edi, eax
call fcn.1010d6a8
add esp, 0xc
test ebp, ebp
je 0x100426c7
lea eax, [esp + 0x1058]
push eax
lea ecx, [esp + 0xc5c]
push str.____s
push ecx
call fcn.1010d6a8
add esp, 0xc
lea edx, [esp + 0xc58]
jmp 0x100426c9
xor edx, edx
lea ecx, [esp + 0x28]
call fcn.10063da0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x100428ed
push 0xa28
lea ecx, [esp + 0x1a84]
lea edx, [esp + 0x234]
mov dword [esp + 0x14], esi
call fcn.10042a50
add esp, 4
test eax, eax
je 0x10042715
lea edx, [esp + 0x1a80]
push edx
lea eax, [esp + 0x234]
push eax
call edi
push 0x3ff
lea ecx, [esp + 0xc5d]
push esi
push ecx
mov byte [esp + 0xc64], 0
call fcn.10116880
add esp, 0xc
mov eax, 0x101523dc
cmp ebp, esi
je 0x10042743
lea eax, [esp + 0x1058]
lea edx, [esp + 0x230]
push edx
push eax
lea eax, [esp + 0xc60]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [str._Rename__r_n]
mov edx, dword [0x101523f0]
push 0x103
mov dword [esp + 0x34], edx
mov ebx, eax
mov ax, word [0x101523f4]
mov dword [esp + 0x30], ecx
mov cl, byte [0x101523f6]
lea edx, [esp + 0x3d]
push 0
push edx
mov word [esp + 0x40], ax
mov byte [esp + 0x42], cl
call fcn.10116880
lea eax, [esp + 0x44]
push 0x104
push eax
mov byte [esp + 0x4c], 0
call fcn.10042f40
add esp, 0x24
push str.WinInit.Ini
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x8000080
push 4
push 0
push 0xc0000000
lea edi, [esp + 0x38]
call fcn.10033690
mov esi, eax
add esp, 0x10
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x100427ee
xor eax, eax
jmp 0x100428ed
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebp, eax
lea edx, [ebx + ebp + 0xa]
push edx
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100428cc
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x100428c2
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
je 0x1004284e
add eax, edi
mov dword [esp + 0x10], eax
jne 0x1004286b
lea ecx, [esp + 0x1c]
push ecx
lea edx, [edi + ebp]
push 0x1013fb04
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebp, eax
mov eax, ebp
jmp 0x1004289d
push 0xa
push eax
call fcn.1010d780
mov esi, eax
add esp, 8
test esi, esi
jne 0x10042880
mov esi, dword [esp + 0x10]
inc esi
mov eax, edi
sub eax, esi
add eax, ebp
push eax
lea ecx, [esi + ebx]
push esi
push ecx
call fcn.1010ffc0
add esp, 0xc
sub esi, edi
mov eax, esi
mov esi, dword [esp + 0x14]
push ebx
lea edx, [esp + 0xc5c]
push edx
add eax, edi
push eax
call fcn.101162d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add ebp, ebx
mov dword [esp + 0x10], 1
lea eax, [esp + 0x18]
push eax
call fcn.100673f0
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 ecx, [esp + 0x14]
push ecx
call fcn.100673f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x249c
ret 4