Function at 0x43b980
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5115c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54a050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.004a7b93
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x43b9c3
push 0x80004005
call fcn.00401710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], edi
call fcn.004a7b93
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x43b9f1
push 0x80004005
call fcn.00401710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x38]
mov byte [esp + 0x30], 1
cmp dword [esi + 0x1acfa8], edi
mov dword [esp + 0x24], edi
jle 0x43bbaa
lea ebp, [esi + 0x1db138]
lea ecx, [esi + 0x1db134]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ecx
mov edi, edi
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
jne 0x43bb8b
cmp dword [esp + 0x3c], 0
je 0x43ba56
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp], 0
xor edx, edx
cmp dword [esi + 0x1acf9c], edx
lea ebp, [edi + 1]
jle 0x43badb
lea eax, [esi + 0x1bf270]
lea esp, [esp]
mov ecx, dword [eax - 0x1c]
sub ecx, 1
je 0x43bab6
sub ecx, 1
je 0x43ba9d
sub ecx, 4
jne 0x43bacd
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x43bacd
test ecx, 0xff00
jne 0x43bacd
cmp ecx, ebp
jle 0x43bacd
add ecx, 0xffffffff
mov dword [eax - 4], ecx
jmp 0x43bacd
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x43bab6
test ecx, 0xff00
jne 0x43bab6
cmp ecx, ebp
jle 0x43bab6
add ecx, 0xffffffff
mov dword [eax - 4], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x43bacd
test ecx, 0xff00
jne 0x43bacd
cmp ecx, ebp
jle 0x43bacd
add ecx, 0xffffffff
mov dword [eax], ecx
add edx, 1
add eax, 0x34
cmp edx, dword [esi + 0x1acf9c]
jl 0x43ba70
cmp ebp, dword [esi + 0x1acfa8]
jge 0x43bb4c
mov eax, ebp
imul eax, eax, 0x2c
lea ebx, [eax + esi + 0x1db108]
nop
lea esi, [ebx + 0x2c]
mov ecx, 0xb
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 1]
push ecx
lea edx, [esp + 0x24]
push str.TEXTEX_d.BMP
push edx
call fcn.004018d0
push ebp
lea eax, [esp + 0x28]
push str.TEXTEX_d.BMP
push eax
call fcn.004018d0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add esp, 0x18
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x38]
add ebp, 1
add ebx, 0x2c
cmp ebp, dword [eax + 0x1acfa8]
jl 0x43baf0
mov edi, dword [esp + 0x24]
mov esi, eax
add dword [esi + 0x1acfa8], 0xffffffff
mov eax, 0x2c
sub dword [esp + 0x14], eax
sub dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1acfa8]
push eax
lea ecx, [esp + 0x1c]
push str.TEXTEX_d.BMP
push ecx
sub edi, 1
call fcn.004018d0
mov ebx, dword [esp + 0x24]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [esp + 0x1c]
add dword [esp + 0x14], 0x2c
add edi, 1
add ebp, 0x2c
cmp edi, dword [esi + 0x1acfa8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebp
jl 0x43ba30
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43bbcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43bbf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret