Function at 0x40d290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530470
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x58deec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x54114c
call fcn.00405830
mov ecx, esi
call fcn.0040cfc0
mov edi, eax
mov eax, dword [esi + 0xe4]
push eax
call fcn.005163a3
dec eax
add esp, 4
cmp edi, eax
jle 0x40d307
push 0
push 0
push 0x54173c
mov ecx, esi
call fcn.004188ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
cmp dword [0x5892a8], edi
jne 0x40d333
push 0
push 0
push 0x54172c
mov ecx, esi
call fcn.004188ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x5409a6
lea ecx, [ebp - 0x10]
call fcn.00405830
push str.client_
lea eax, [esi + 0x5f8]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0
call fcn.00405750
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x10]
push str._sClient.exe
push eax
mov byte [ebp - 4], 1
call fcn.00401f90
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x40d3ae
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401aa0
mov eax, dword [ebp - 0x10]
push 0x541710
push eax
call fcn.00515690
add esp, 8
test eax, eax
jne 0x40d3e6
push eax
push eax
push 0x5416f0
mov ecx, esi
call fcn.004188ff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jmp 0x40d4ff
mov eax, dword [esi + 0xdc]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00405390
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040ecb0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
push str..clientcore.bpl
call edi
push str..clientDSETUP.dll
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RT_RCDATA
push 0xe5
push str..clientCore.bpl
push 0
call edi
push eax
mov ecx, esi
call fcn.00407570
push str.RT_RCDATA
push 0xa9
push str..clientyb_mem.dll
push 0
call edi
push eax
mov ecx, esi
call fcn.00407570
push str.RT_RCDATA
push 0xd5
push str..clientyb_key.dll
push 0
call edi
push eax
mov ecx, esi
call fcn.00407570
push str.RT_RCDATA
push 0xe6
push str..clientDSETUP.dll
push 0
call edi
push eax
mov ecx, esi
call fcn.00407570
push 1
push 0x541354
lea ecx, [ebp - 0x10]
call fcn.00408cc0
mov eax, dword [esi + 0xe0]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00405390
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040cbe0
add esp, 4
mov ecx, esi
test al, al
je 0x40d4d4
push 6
call fcn.0041deb5
jmp 0x40d4e5
push 0
push 0x541678
push 0x54165c
call fcn.004188ff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d50b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret