Function at 0x40d700
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x48845e
mov eax, dword fs:[0]
push eax
mov eax, 0x200e0
call fcn.0045be80
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x200dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, esp
push eax
lea eax, [esp + 0x200f4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20104]
push 0x48fb7c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20100], 1
call fcn.0040d280
push 0x48fb7c
lea ecx, [esp + 0x18]
mov byte [esp + 0x20100], 2
call fcn.0040d280
push 0x16
push str.getUpdateFileInfo_ver
lea ecx, [esp + 0x1c]
mov byte [esp + 0x20104], 3
mov dword [esp + 0x24], 0xffffffff
call fcn.00409930
mov ebp, dword [esp + 0x2010c]
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040a320
push 0xa
push str.fileName
lea ecx, [esp + 0x1c]
call fcn.0040a320
mov ebx, dword [esp + 0x20108]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040a320
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.00408cd0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00413960
test eax, eax
je 0x40dc73
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x40dc73
push 0x4907b0
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.00414320
mov edx, dword [esp + 0x18]
push 0x4907a4
push edx
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
mov byte [esp + 0x20108], 4
call fcn.00414320
mov ecx, dword [esp + 0xb0]
push 3
push 0x4907a0
push ecx
push 0
lea ecx, [esp + 0xac]
mov byte [esp + 0x2010c], 5
call fcn.00408790
test eax, eax
je 0x40dc12
cmp dword [esp + 0x5c], 0
jbe 0x40dc12
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x40d887
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00414180
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x3c], esp
mov ebp, eax
mov eax, dword [esp + 0x34]
push str.size
push eax
push edx
mov ecx, esi
call fcn.00414320
call fcn.00409a60
mov ecx, dword [esp + 0x34]
add esp, 0x1c
push 0x490794
push ecx
lea edx, [esp + 0xc0]
mov edi, eax
push edx
mov ecx, esi
mov dword [esp + 0x2c], edi
call fcn.00414320
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x200fc], 6
jae 0x40d8ea
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.00413050
cmp dword [esp + 0xec], 0x10
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x200fc], 7
jae 0x40d91a
lea eax, [esp + 0xd8]
push eax
call fcn.00405cc0
add esp, 4
test eax, eax
jle 0x40d98f
mov ecx, dword [esp + 0xbc]
mov eax, 0x10
cmp dword [esp + 0xd0], eax
jae 0x40d943
lea ecx, [esp + 0xbc]
cmp dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
jae 0x40d951
lea eax, [esp + 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.00413ff0
test eax, eax
je 0x40d98f
mov dword [esp + 0x1c], 0
mov edi, 0x10
lea ecx, [esp + 0xd4]
call fcn.00403f50
lea ecx, [esp + 0xb8]
call fcn.00403f50
mov ebp, dword [esp + 0x2010c]
jmp 0x40dc17
cmp ebp, edi
jge 0x40dac5
push 0x10
push str.update_fileName
lea ecx, [esp + 0x1c]
call fcn.00409930
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040a320
push 8
push str.offset
lea ecx, [esp + 0x1c]
call fcn.0040a320
push 0xffffffffffffffff
push 0xa
lea ecx, [esp + 0x6c]
push ebp
push ecx
call fcn.0040bd40
add esp, 0x10
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x200fc], 8
jb 0x40d9ea
mov edx, dword [eax + 4]
jmp 0x40d9ed
lea edx, [eax + 4]
test edx, edx
jne 0x40d9f5
xor eax, eax
jmp 0x40da0b
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40da00
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0040a320
cmp dword [esp + 0x7c], 0x10
mov byte [esp + 0x200fc], 7
jb 0x40da32
mov edx, dword [esp + 0x68]
push edx
call fcn.00418702
add esp, 4
push 0x1ffff
lea eax, [esp + 0xf5]
push 0
push eax
mov byte [esp + 0xfc], 0
call fcn.0045a0f0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xf4]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
mov dword [esp + 0x34], 0x20000
call fcn.00408cd0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004136c0
test eax, eax
je 0x40dabf
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x40da9c
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xf4]
push edx
push eax
mov ecx, esi
call fcn.00414200
add ebp, dword [esp + 0x24]
cmp ebp, dword [esp + 0x20]
jl 0x40d997
mov edi, dword [esp + 0x20]
cmp ebp, edi
jne 0x40d966
mov eax, dword [esp + 0x4c]
mov edi, 0x10
cmp dword [esp + 0x60], edi
jae 0x40dade
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call fcn.00412f60
cmp dword [esp + 0xd0], edi
mov ecx, dword [esp + 0xbc]
mov byte [esp + 0x200fc], 9
jae 0x40db0a
lea ecx, [esp + 0xbc]
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x40db18
lea eax, [esp + 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.00413e60
test eax, eax
je 0x40dbef
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x84]
call fcn.004047c0
mov edx, dword [esp + 0x94]
add edx, 0xfffffffc
push edx
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x20108], 0xa
call fcn.0040b320
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x20108], 0xb
call fcn.00404330
lea ecx, [esp + 0x2c]
call fcn.00403f50
cmp dword [esp + 0x98], edi
mov eax, dword [esp + 0x84]
jae 0x40db99
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x98], edi
mov ecx, dword [esp + 0x84]
jae 0x40dbb7
lea ecx, [esp + 0x84]
cmp dword [esp + 0x7c], edi
mov eax, dword [esp + 0x68]
jae 0x40dbc5
lea eax, [esp + 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x80]
mov dword [esp + 0x1c], 0
call fcn.00403f50
lea ecx, [esp + 0x64]
call fcn.00403f50
jmp 0x40d96b
cmp dword [esp + 0x7c], edi
mov eax, dword [esp + 0x68]
jae 0x40dbfd
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x64]
call fcn.00403f50
jmp 0x40d96b
mov edi, 0x10
cmp dword [esp + 0xb4], edi
jb 0x40dc30
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00418702
add esp, 4
cmp dword [esp + 0x60], edi
mov esi, 0xf
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
jb 0x40dc62
mov edx, dword [esp + 0x4c]
push edx
call fcn.00418702
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x200fc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x200fc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dcc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x200fc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x200fc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x200f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x200dc]
xor ecx, esp
call fcn.00459426
add esp, 0x200ec
ret 0xc