Function at 0x4036e0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x43942b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x449cd0]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov eax, dword [esp + 0x448]
mov ecx, dword [esp + 0x454]
mov ebp, dword [esp + 0x44c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.00410194
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403752
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x128]
push 0
push ecx
mov dword [esp + 0x448], 0
call fcn.0041ec20
lea edx, [esp + 0x130]
add esp, 0xc
mov eax, ebp
sub edx, ebp
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403790
lea eax, [esp + 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4037a2
mov edx, dword [str..tmp]
mov cl, byte [0x43b920]
mov dword [eax], edx
lea edx, [esp + 0x124]
push 0x43b918
push edx
mov byte [eax + 4], cl
call fcn.0041e83b
add esp, 8
test eax, eax
je 0x4037dd
push eax
call fcn.0041e1f2
add esp, 4
push 0x104
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041ec20
mov ebx, dword [esp + 0x45c]
lea esi, [esp + 0x2c]
add esp, 0xc
mov eax, ebx
sub esi, ebx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x403800
lea eax, [esp + 0x20]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403810
mov ecx, dword [str._forbit.ini]
mov edx, dword [0x43b910]
mov dword [eax], ecx
mov ecx, dword [0x43b914]
mov dword [eax + 4], edx
lea edx, [esp + 0x20]
push edx
mov dword [eax + 8], ecx
call fcn.00407920
add esp, 4
test eax, eax
jne 0x40386b
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push str.LdxFile__s__Not_Exists
push ecx
call fcn.00401ce0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edx
mov ecx, 0x44b3c5
call fcn.0040aa20
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.00402ba0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4038ee
lea edx, [esp + 0x124]
push edx
call fcn.00407b30
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_error_code:__d
push ecx
call fcn.00401ce0
mov esi, dword [esp + 0x28]
add esp, 0x14
push 0
push esi
mov ecx, 0x44b3c5
call fcn.0040aa20
lea eax, [esi - 0x10]
mov dword [esp + 0x43c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4038e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x403c06
push 0x104
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.0041ec20
add esp, 0xc
mov eax, ebx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x403904
lea eax, [esp + 0x20]
or ebx, 0xffffffff
add eax, ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403917
mov edx, dword [str.ldcab.ldx]
mov ecx, dword [0x43b8ac]
mov dword [eax], edx
mov dx, word [0x43b8b0]
mov dword [eax + 4], ecx
mov cl, byte [0x43b8b2]
mov word [eax + 8], dx
lea edx, [esp + 0x20]
push edx
mov byte [eax + 0xa], cl
call fcn.00407920
add esp, 4
test eax, eax
jne 0x40397d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push str.LdxFile__s__Not_Exists
push ecx
call fcn.00401ce0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edx
mov ecx, 0x44b3c5
call fcn.0040aa20
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.00402ba0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4039eb
lea edx, [esp + 0x124]
push edx
call fcn.00407b30
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_error_code:__d
push ecx
call fcn.00401ce0
mov esi, dword [esp + 0x28]
add esp, 0x14
push 0
push esi
mov ecx, 0x44b3c5
call fcn.0040aa20
lea eax, [esi - 0x10]
mov dword [esp + 0x43c], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jmp 0x4038db
push 0x104
lea ecx, [esp + 0x22c]
push 0
push ecx
call fcn.0041ec20
mov esi, dword [esp + 0x450]
lea edx, [esp + 0x234]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403a14
lea eax, [esp + 0x228]
add eax, ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403a27
mov edx, dword [0x43b898]
mov ecx, dword [0x43b89c]
mov dword [eax], edx
mov edx, dword [0x43b8a0]
mov dword [eax + 4], ecx
mov cl, byte [0x43b8a4]
mov dword [eax + 8], edx
lea edx, [esp + 0x32c]
mov byte [eax + 0xc], cl
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403a60
lea eax, [esp + 0x32c]
add eax, ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403a73
mov edx, dword [str.ldcab.lddat]
mov ecx, dword [0x43b88c]
mov dword [eax], edx
mov edx, dword [0x43b890]
mov dword [eax + 4], ecx
mov cl, byte [0x43b894]
mov dword [eax + 8], edx
push 0
push 0
lea edx, [esp + 0x230]
mov byte [eax + 0xc], cl
push edx
lea eax, [esp + 0x130]
push eax
call fcn.00402ba0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x403b2f
push edi
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x1c]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_error_code:__d
push edx
call fcn.00401ce0
lea edx, [esp + 0x134]
add esp, 0x10
push edx
call fcn.00407b30
lea eax, [esp + 0x22c]
push eax
call fcn.00407b30
lea ecx, [esp + 0x334]
push ecx
call fcn.00407b30
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push esi
mov ecx, 0x44b3c5
call fcn.0040aa20
lea eax, [esi - 0x10]
mov dword [esp + 0x43c], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jmp 0x4038db
lea eax, [esp + 0x124]
push 0x43b814
push eax
call fcn.0041e83b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
mov esi, eax
push edx
push esi
call fcn.00402600
push esi
mov bl, al
call fcn.0041e1f2
add esp, 0x18
test bl, bl
jne 0x403b7e
push 0
lea eax, [esp + 0x330]
push eax
lea ecx, [esp + 0x1c]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_error_code:__d
push ecx
call fcn.00401ce0
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call esi
push ebp
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x124]
push edx
call fcn.00407b30
add esp, 4
lea eax, [esp + 0x228]
push eax
call esi
lea ecx, [esp + 0x32c]
push ecx
call esi
lea edx, [esp + 0x14]
push str.SimpleUpdate_File_Success
push edx
call fcn.00401ce0
mov esi, dword [esp + 0x1c]
add esp, 8
push 0
push esi
mov ecx, 0x44b3c5
call fcn.0040aa20
lea eax, [esi - 0x10]
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0041d4f4
add esp, 0x42c
ret