Function at 0x415820
Capabilities:
Delete file
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4526f0
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov dword [esp + 0x154], 1
mov eax, dword [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.0041d070
xor ebx, ebx
mov esi, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], bl
mov dword [esp + 0x140], ebx
cmp esi, ebx
jne 0x4158ac
mov dword [0x46d6a8], 0x10000
jmp 0x415938
cmp dword [esi], 1
je 0x4158bd
mov dword [0x46d6a8], 0x80000
jmp 0x415938
mov ebp, dword [esi + 4]
mov edi, dword [ebp]
or ecx, 0xffffffff
cmp dword [edi + 4], ecx
jg 0x4158d2
mov ecx, 0x10000
jmp 0x415932
cmp dword [ebp + 4], ecx
je 0x4158dc
call fcn.0041c540
mov edx, dword [ebp]
mov dword [ebp + 4], 0xffffffff
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], bl
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
xor ecx, ecx
mov dword [0x46d6a8], ecx
xor edi, edi
cmp eax, ebx
mov ebp, eax
jle 0x4159ac
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x140], ebx
cmp esi, ebx
je 0x415988
cmp dword [esi], 1
je 0x415973
mov dword [0x46d6a8], 0x80000
cmp dword [esi], 1
je 0x415994
mov dword [0x46d6a8], 0x80000
jmp 0x4159a7
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0041c6e0
mov dword [0x46d6a8], eax
jmp 0x415962
mov dword [0x46d6a8], 0x10000
jmp 0x4159a7
mov eax, dword [esi + 4]
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0041cd60
mov dword [0x46d6a8], eax
inc edi
cmp edi, ebp
jl 0x415940
cmp esi, ebx
jne 0x4159bf
mov dword [0x46d6a8], 0x10000
jmp 0x415a78
cmp dword [esi], 1
je 0x4159d3
mov dword [0x46d6a8], 0x80000
jmp 0x415a78
mov ebp, dword [esi + 4]
cmp dword [ebp + 4], 0xffffffff
je 0x4159e4
mov edi, dword [ebp]
call fcn.0041c540
mov edi, dword [ebp]
mov dword [ebp + 4], 0xffffffff
cmp edi, ebx
je 0x415a2b
cmp dword [edi + 0x7c], ebx
je 0x4159fc
call fcn.0041c540
mov eax, dword [edi]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x415a22
cmp byte [eax + 0x10], bl
je 0x415a19
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call fcn.0041d8c2
add esp, 4
push edi
call fcn.0043bb43
add esp, 4
mov dword [ebp], ebx
mov eax, dword [ebp + 0x138]
mov dword [0x46d6a8], ebx
cmp eax, ebx
je 0x415a47
push eax
call fcn.0041d8c2
add esp, 4
mov eax, dword [ebp + 0x13c]
mov dword [ebp + 0x138], ebx
cmp eax, ebx
je 0x415a60
push eax
call fcn.0041d8c2
add esp, 4
push ebp
mov dword [ebp + 0x13c], ebx
call fcn.0041d8c2
add esp, 4
push esi
call fcn.0041d8c2
add esp, 4
cmp dword [esp + 0x164], ebx
je 0x415a8f
mov edx, dword [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x15c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x154], 0xffffffff
mov eax, dword [esp + 0x160]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ae7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0043a8ec
add esp, 0x144
ret 0xc