Function at 0x469750
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x49cddc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x4bc410]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4bd2c0]
push ebp
mov ebp, ecx
cmp dword [eax + 0x7c8], 4
jne 0x469a3c
push esi
lea ecx, [esp + 0xc]
call dword [0x49f754]
mov ecx, dword [ebp + 8]
mov edx, dword [0x4bd2c0]
mov eax, dword [edx + 0x18]
push ecx
push eax
lea ecx, [esp + 0x14]
push str._sshare_u_unfinished.cfg
push ecx
mov dword [esp + 0x238], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x4a49d4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], esi
je 0x469a31
push esi
lea edx, [esp + 0x1c]
push 0x200
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x469a16
push ebx
push edi
lea edi, [esp + 0x20]
dec edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x469820
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x469833
mov byte [edi + eax], 0
mov ebx, dword [sym.imp.MSVCR71.dll_atoi]
lea eax, [esp + 0x20]
push eax
call ebx
add esp, 4
movzx eax, ax
sub eax, 0xbf4
push esi
push 0x200
je 0x469910
sub eax, 2
je 0x4698ad
sub eax, 0x54
je 0x469874
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
jmp 0x4699f8
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4699f8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x469891
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x4698a4
mov byte [edi + eax], 0
push 0
push 0xc4a
jmp 0x4698ea
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4699f8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4698d0
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x4698e3
mov byte [edi + eax], 0
push 0
push 0xbf6
mov ecx, ebp
call fcn.004620e0
push 0x2c
mov esi, eax
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x24]
push esi
mov ecx, ebp
call fcn.00462850
jmp 0x4699f4
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4699f8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x469930
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x469943
mov byte [edi + eax], 0
mov eax, dword [ebp + 0xf0]
test eax, eax
jne 0x469989
cmp dword [ebp + 0x4f8], 0xc8
jge 0x469989
push 0
push 0xbf4
mov ecx, ebp
call fcn.004620e0
push 0x2c
mov esi, eax
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x24]
push esi
mov ecx, ebp
call fcn.00462850
inc dword [ebp + 0x4f8]
jmp 0x4699f4
lea edx, [esp + 0x20]
push 0x2c
push edx
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4699f4
mov byte [esi], 0
inc esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4699a8
sub eax, edx
lea edi, [eax + 5]
lea eax, [esp + 0x20]
push eax
call ebx
push edi
mov ebx, eax
call sub.MFC71.DLL_operator_new
lea ecx, [edi - 4]
mov edx, ecx
shr ecx, 2
mov dword [eax], ebx
lea edi, [eax + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x20], eax
add esp, 8
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp + 0xe8]
call fcn.00424c90
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x24]
push 0x200
push ecx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x469813
pop edi
pop ebx
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x218]
pop ebp
xor ecx, esp
call fcn.00496ace
add esp, 0x224
ret