Function at 0x4150e0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x498f6b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push eax
mov ebp, ecx
call fcn.0040a9b0
xor ebx, ebx
cmp eax, ebx
je 0x41512d
cmp dword [eax + 0x278], ebx
jne 0x415330
cmp dword [eax + 0x238], ebx
jne 0x415330
cmp dword [eax + 0x24], ebx
je 0x415330
push esi
push edi
lea ecx, [esp + 0x24]
call dword [0x49f754]
mov ecx, ebp
mov dword [esp + 0x30], ebx
call fcn.00410b20
mov ecx, dword [ebp + 0x3a4]
sub ecx, eax
dec ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ecx
js 0x415324
nop
cmp ecx, ebx
jl 0x415343
cmp ecx, dword [ebp + 0x3a4]
jge 0x415343
mov edx, dword [ebp + 0x3a0]
mov esi, dword [edx + ecx*4]
cmp esi, ebx
je 0x415315
cmp dword [esi + 0x278], ebx
jne 0x415315
mov edi, dword [esp + 0x38]
mov eax, esi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4151bb
cmp cl, bl
je 0x4151b7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4151bb
add eax, 2
add edi, 2
cmp cl, bl
jne 0x415197
xor eax, eax
jmp 0x4151c0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4152ef
dec dword [esp + 0x18]
mov eax, dword [esi + 0x238]
js 0x4151fa
cmp eax, ebx
jne 0x415315
mov ecx, dword [ebp + 0x160]
cmp ecx, ebx
je 0x4151ee
push 1
push esi
call fcn.00404020
mov dword [esi + 0x24], 1
jmp 0x415315
cmp eax, ebx
je 0x415208
push 1
push esi
mov ecx, ebp
call fcn.00412120
cmp dword [esi + 0x24], 6
jne 0x4152a5
push esi
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.0040aa40
push str..jfrec
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x3c], 1
call fcn.00401050
push str..inpart
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x48], 2
call fcn.00401050
add esp, 0x18
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x4152b5
mov ecx, dword [ebp + 0x160]
cmp ecx, ebx
je 0x4152b5
push esi
call fcn.00404670
cmp dword [ebp + 0x394], esi
jne 0x4152c3
mov dword [ebp + 0x394], ebx
push 1
push esi
mov ecx, ebp
call fcn.0040e5b0
mov edi, dword [esp + 0x14]
push 1
push edi
lea ecx, [ebp + 0x39c]
call sub.MFC71.DLL_CPtrArray::RemoveAt
push esi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
dec edi
mov dword [esp + 0x14], edi
jmp 0x415315
cmp dword [esi + 0x24], 6
je 0x415315
cmp dword [esi + 0x238], ebx
jne 0x415315
mov ecx, dword [ebp + 0x160]
cmp ecx, ebx
je 0x41530e
push ebx
push esi
call fcn.00404020
mov dword [esi + 0x24], 4
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
jns 0x415160
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
mov ecx, dword [esp + 0x20]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
call fcn.0049641a
int3