Function at 0x43f7c0
Capabilities:
Move file

Disassembly:
sub esp, 0x41c
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push esi
test ebp, ebp
push edi
mov dword [esp + 0x14], ecx
jne 0x43f7e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x41c
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x434]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push ecx
lea edx, [esp + 0x22c]
push str._s_0d
push edx
call ebx
lea eax, [esp + 0x234]
mov byte [esp + 0x23], 0
push eax
call fcn.00455aa0
add esp, 0x14
test eax, eax
je 0x43f883
lea edi, [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x328]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x13], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x224]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4d8454
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x224]
push eax
call fcn.00455d60
mov ecx, dword [ebp + 0xc]
add esp, 4
lea edx, [esp + 0x224]
lea eax, [esp + 0x1c]
push ecx
push edx
push str._s_0d.dat
push eax
call ebx
lea ecx, [esp + 0x2c]
push ecx
call fcn.00455aa0
add esp, 0x14
test eax, eax
je 0x43f92b
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4d8454
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x120]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
lea edx, [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f957
mov ecx, dword [esp + 0x14]
call fcn.0043f690
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x41c
ret 8
lea eax, [ebp + 0x10]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 4]
lea ebx, [ebp + 0x14]
add eax, 0xfffffff8
mov dword [ebp + 4], eax
je 0x43faa2
mov eax, dword [ebx]
mov esi, dword [ebp + 4]
mov ecx, eax
add esi, 0xfffffffc
add ebx, 4
mov edx, ecx
mov dword [ebp + 4], esi
mov esi, ebx
lea edi, [esp + 0x120]
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
add ebx, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
sub ecx, eax
mov dword [ebp + 4], ecx
mov edi, dword [ebx - 4]
add ecx, 0xfffffffc
mov byte [esp + eax + 0x120], 0
mov dword [ebp + 4], ecx
lea eax, [esp + 0x120]
lea ecx, [esp + 0x224]
push eax
push ecx
push 0x4d70b0
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2c]
push eax
call fcn.00455aa0
add esp, 0x14
test eax, eax
je 0x43fa6a
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4d8454
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x120]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
mov edi, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f93f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 4]
add ebx, edi
sub eax, edi
mov dword [ebp + 4], eax
jne 0x43f97d
mov al, byte [esp + 0x13]
test al, al
je 0x43fad0
lea eax, [esp + 0x328]
push eax
call fcn.00455ac0
lea ecx, [esp + 0x32c]
lea edx, [esp + 0x228]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0xc
mov eax, dword [esp + 0x14]
push 0xa
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x41c
ret 8