Function at 0x403b40
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x43c37b
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x844]
mov dword fs:[0], eax
mov eax, dword [esp + 0x858]
mov ecx, dword [esp + 0x864]
mov ebp, dword [esp + 0x85c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.004125a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403bb2
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x208
lea ecx, [esp + 0x22c]
push 0
push ecx
mov dword [esp + 0x858], 0
call fcn.00421360
lea edx, [esp + 0x234]
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 0x403bf0
lea eax, [esp + 0x228]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403c02
mov edx, dword [str..tmp]
mov cl, byte [0x43e95c]
mov dword [eax], edx
lea edx, [esp + 0x228]
push 0x43e954
push edx
mov byte [eax + 4], cl
call fcn.00420f7d
add esp, 8
test eax, eax
je 0x403c3d
push eax
call fcn.00420934
add esp, 4
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00421360
mov ebx, dword [esp + 0x86c]
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 0x403c60
lea eax, [esp + 0x20]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403c70
mov ecx, dword [str._forbit.ini]
mov edx, dword [0x43e94c]
mov dword [eax], ecx
mov ecx, dword [0x43e950]
mov dword [eax + 4], edx
lea edx, [esp + 0x20]
push edx
mov dword [eax + 8], ecx
call fcn.00408690
add esp, 4
test eax, eax
jne 0x403ccb
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push str.LdxFile__s__Not_Exists
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edx
mov ecx, 0x44e3c9
call fcn.0040be50
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push ecx
call fcn.00402e00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x403d4e
lea edx, [esp + 0x228]
push edx
call fcn.004088a0
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.00401f40
mov esi, dword [esp + 0x28]
add esp, 0x14
push 0
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea eax, [esi - 0x10]
mov dword [esp + 0x84c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x404066
push 0x208
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.00421360
add esp, 0xc
mov eax, ebx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x403d64
lea eax, [esp + 0x20]
or ebx, 0xffffffff
add eax, ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403d77
mov edx, dword [str.ldcab.ldx]
mov ecx, dword [0x43e8e8]
mov dword [eax], edx
mov dx, word [0x43e8ec]
mov dword [eax + 4], ecx
mov cl, byte [0x43e8ee]
mov word [eax + 8], dx
lea edx, [esp + 0x20]
push edx
mov byte [eax + 0xa], cl
call fcn.00408690
add esp, 4
test eax, eax
jne 0x403ddd
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push str.LdxFile__s__Not_Exists
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edx
mov ecx, 0x44e3c9
call fcn.0040be50
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push ecx
call fcn.00402e00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x403e4b
lea edx, [esp + 0x228]
push edx
call fcn.004088a0
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.00401f40
mov esi, dword [esp + 0x28]
add esp, 0x14
push 0
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea eax, [esi - 0x10]
mov dword [esp + 0x84c], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jmp 0x403d3b
push 0x208
lea ecx, [esp + 0x434]
push 0
push ecx
call fcn.00421360
mov esi, dword [esp + 0x860]
lea edx, [esp + 0x43c]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403e74
lea eax, [esp + 0x430]
add eax, ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403e87
mov edx, dword [0x43e8d4]
mov ecx, dword [0x43e8d8]
mov dword [eax], edx
mov edx, dword [0x43e8dc]
mov dword [eax + 4], ecx
mov cl, byte [0x43e8e0]
mov dword [eax + 8], edx
lea edx, [esp + 0x638]
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 0x403ec0
lea eax, [esp + 0x638]
add eax, ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403ed3
mov edx, dword [str.ldcab.lddat]
mov ecx, dword [0x43e8c8]
mov dword [eax], edx
mov edx, dword [0x43e8cc]
mov dword [eax + 4], ecx
mov cl, byte [0x43e8d0]
mov dword [eax + 8], edx
push 0
push 0
lea edx, [esp + 0x438]
mov byte [eax + 0xc], cl
push edx
lea eax, [esp + 0x234]
push eax
call fcn.00402e00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x403f8f
push edi
lea ecx, [esp + 0x434]
push ecx
lea edx, [esp + 0x1c]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_error_code:__d
push edx
call fcn.00401f40
lea edx, [esp + 0x238]
add esp, 0x10
push edx
call fcn.004088a0
lea eax, [esp + 0x434]
push eax
call fcn.004088a0
lea ecx, [esp + 0x640]
push ecx
call fcn.004088a0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea eax, [esi - 0x10]
mov dword [esp + 0x84c], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jmp 0x403d3b
lea eax, [esp + 0x228]
push 0x43e830
push eax
call fcn.00420f7d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
mov esi, eax
push edx
push esi
call fcn.00402860
push esi
mov bl, al
call fcn.00420934
add esp, 0x18
test bl, bl
jne 0x403fde
push 0
lea eax, [esp + 0x63c]
push eax
lea ecx, [esp + 0x1c]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_error_code:__d
push ecx
call fcn.00401f40
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call esi
push ebp
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x228]
push edx
call fcn.004088a0
add esp, 4
lea eax, [esp + 0x430]
push eax
call esi
lea ecx, [esp + 0x638]
push ecx
call esi
lea edx, [esp + 0x14]
push str.SimpleUpdate_File_Success
push edx
call fcn.00401f40
mov esi, dword [esp + 0x1c]
add esp, 8
push 0
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea eax, [esi - 0x10]
mov dword [esp + 0x84c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404064
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.0041f914
add esp, 0x83c
ret