Function at 0x474380
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a874c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x4cbba0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4ccb50]
push ebp
mov ebp, ecx
cmp dword [eax + 0x840], 4
jne 0x47466c
push esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [ebp + 8]
mov edx, dword [0x4ccb50]
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 0x4ad6f4
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 0x474661
push esi
lea edx, [esp + 0x1c]
push 0x200
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x474646
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 0x474450
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x474463
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 0x474540
sub eax, 2
je 0x4744dd
sub eax, 0x54
je 0x4744a4
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
jmp 0x474628
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x474628
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4744c1
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x4744d4
mov byte [edi + eax], 0
push 0
push 0xc4a
jmp 0x47451a
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x474628
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474500
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x474513
mov byte [edi + eax], 0
push 0
push 0xbf6
mov ecx, ebp
call fcn.0046e360
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.0046ea30
jmp 0x474624
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x474628
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474560
sub eax, edx
cmp byte [edi + eax], 0xa
jne 0x474573
mov byte [edi + eax], 0
mov eax, dword [ebp + 0xf0]
test eax, eax
jne 0x4745b9
cmp dword [ebp + 0x4f8], 0xc8
jge 0x4745b9
push 0
push 0xbf4
mov ecx, ebp
call fcn.0046e360
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.0046ea30
inc dword [ebp + 0x4f8]
jmp 0x474624
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 0x474624
mov byte [esi], 0
inc esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4745d8
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.0042b910
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 0x474443
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.004a17d1
add esp, 0x224
ret