Function at 0x41e550
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478170
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x38], ebx
push esi
push ebx
push 0x490f10
push 0x48b39c
call fcn.00430910
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push esi
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0042cc70
add esp, 0x14
test eax, eax
je 0x41e785
mov edi, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x40]
sete al
test al, al
jne 0x41e785
push 0x490f9c
push ebx
call fcn.004620d4
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x41e611
push dword [ebp - 0x38]
push str.open_file___s__failed
jmp 0x41e795
push 2
push 0
push ebx
call fcn.00461d68
add esp, 0xc
push ebx
call fcn.004619ad
add esp, 4
test eax, eax
jne 0x41e646
push ebx
push 1
lea eax, [ebp - 0x38]
mov word [ebp - 0x38], 0xbbef
push 3
push eax
mov byte [ebp - 0x36], 0xbf
call fcn.00461fbb
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
cmp edi, dword [ebp - 0x40]
je 0x41e726
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.004087c0
add eax, 0x10
mov dword [ebp - 0x38], eax
push 0x48edf8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00413550
mov esi, dword [ebp - 0x38]
cmp dword [esi - 0xc], 3
jl 0x41e6fe
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e6fe
cmp dword [esi - 4], 1
jle 0x41e6bd
push dword [esi - 0xc]
lea ecx, [ebp - 0x38]
call fcn.00408520
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x50]
mov edx, 1
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
push 0x41e240
push 1
call fcn.0041dd10
push dword [esi - 8]
push esi
call fcn.0045ffc5
add esp, 0x18
test eax, eax
js 0x41e77b
cmp eax, dword [esi - 8]
jg 0x41e77b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
or eax, 0xffffffff
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e71a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x40]
jne 0x41e674
push str._________________________________________r_n
push ebx
call fcn.0041dad0
push dword [ebp - 0x2c]
push str.Total_Files:__d
push ebx
call fcn.0041dad0
add esp, 0x14
push ebx
call fcn.00461a2e
mov eax, dword [ebp - 0x14]
add esp, 4
mov esi, 1
cmp eax, 8
jb 0x41e765
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407760
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x41e7a4
push 0x80070057
call fcn.004064f0
test esi, esi
mov eax, 0x48da20
cmovne eax, esi
push eax
push str.LogFilesMd5ToFile_failed__MD5_s
push 0x48b39c
call fcn.00430910
add esp, 0xc
xor esi, esi
lea ecx, [ebp - 0x50]
call fcn.00412d10
lea ecx, [ebp - 0x44]
call fcn.00412d10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret