Function at 0x40917a
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x410], edi
jne 0x4094a8
test byte [esi + 0x3e4], 1
mov dword [ebp - 0x10], 0x702
mov dword [ebp - 0xc], 8
jne 0x40926d
mov eax, dword [esi + 0x414]
mov ecx, dword [esi + 0x42c]
mov edx, eax
sub edx, ecx
test edx, edx
jg 0x409253
mov ecx, esi
call fcn.00409f94
lea edi, [esi + 0x3ec]
lea eax, [ebp - 0x138]
push edi
push 0x425184
push str._s_s.exe
push eax
call fcn.00415cc0
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00415570
lea eax, [ebp - 0x23c]
push 0x422098
push eax
call fcn.00415580
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x4220ac
push str.Finish
push edi
lea ecx, [esi + 0x190]
call fcn.0040da09
jmp 0x40943d
cmp dword [esi + 0x460], edi
je 0x4094a8
sub eax, dword [esi + 0x42c]
mov dword [ebp - 8], ecx
jmp 0x409492
mov eax, dword [esi + 0x428]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
add edx, ecx
cmp dword [esi + 0x42c], edx
jb 0x409484
cmp dword [esi + 0x3e8], edi
mov ecx, esi
je 0x40937a
call fcn.00409f94
mov eax, dword [esi + 0x428]
mov ebx, 0x425a04
mov eax, dword [eax + 0x2c]
and eax, 1
cmp al, 1
jne 0x4092e8
lea eax, [ebp - 0x23c]
push eax
push 0x425184
call fcn.00405a66
push 2
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.00406a7f
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x23c]
push eax
push ebx
call fcn.00415570
pop ecx
pop ecx
lea eax, [ebp - 0x138]
push eax
push ebx
call fcn.00405c91
pop ecx
lea edx, [ebp - 0x138]
pop ecx
lea eax, [esi + 0x3ec]
push edx
push str.IniFile
lea ecx, [esi + 0x190]
push eax
call fcn.0040da09
push dword [esi + 0x424]
lea ebx, [esi + 0x424]
mov ecx, esi
call fcn.004099c0
mov eax, dword [ebx]
mov ecx, esi
mov dword [esi + 0x3e8], edi
mov dword [esi + 0x428], eax
call fcn.00409f3b
cmp eax, edi
mov dword [esi + 0x428], eax
jne 0x409368
push str.no_file_downloaded.
push 0x424b20
call fcn.0040d0ca
pop ecx
pop ecx
push edi
mov ecx, 0x424b10
call fcn.0040327d
jmp 0x4094a8
push eax
lea eax, [esi + 0x3ec]
push str.CurBlockName
push eax
jmp 0x409457
call fcn.00409fcc
mov ecx, dword [esi + 0x428]
lea eax, [esi + 0x430]
push 0xa
mov ecx, dword [ecx + 0x28]
add dword [eax], ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0041db36
add esp, 0xc
lea eax, [ebp - 0x34]
lea ebx, [esi + 0x3ec]
lea ecx, [esi + 0x190]
push eax
push str.CurBlockPos
push ebx
call fcn.0040da09
add dword [esi + 0x428], 0x30
mov ecx, esi
call fcn.00409f3b
cmp eax, edi
mov dword [esi + 0x428], eax
jne 0x409450
mov ecx, esi
call fcn.0040a038
push ebx
push 0x425184
lea eax, [ebp - 0x138]
push str._s_s.gls
push eax
call fcn.00415cc0
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00415570
lea eax, [ebp - 0x23c]
push 0x422098
push eax
call fcn.00415580
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x410], 1
call dword [eax + 8]
jmp 0x4094a8
push eax
push str.CurBlockName
push ebx
lea ecx, [esi + 0x190]
call fcn.0040da09
mov eax, dword [esi + 0x428]
mov ecx, esi
mov eax, dword [eax + 0x24]
push eax
mov dword [ebp - 8], eax
mov dword [esi + 0x42c], eax
call fcn.0040a285
mov eax, dword [esi + 0x428]
jmp 0x40948f
cmp dword [esi + 0x460], edi
je 0x4094a8
mov dword [ebp - 8], ecx
mov eax, dword [eax + 0x28]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push edi
push eax
mov ecx, esi
call fcn.0040ca62
mov dword [esi + 0x460], edi
pop edi
pop esi
pop ebx
leave
ret