Function at 0x40a23f
Capabilities:
Check if file exists
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c25d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42a024]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x42a024]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor edi, edi
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
push esi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x84], 1
call fcn.0040f462
add esp, 0xc
test eax, eax
je 0x40a47c
cmp dword [esp + 0x18], edi
je 0x40a47c
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
sar eax, 2
je 0x40a47c
push 0x422948
push ebx
call dword [0x41d27c]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x40a498
push 2
push edi
push ebx
call dword [0x41d278]
add esp, 0xc
push ebx
call dword [0x41d274]
cmp eax, edi
pop ecx
jne 0x40a329
push ebx
push 1
lea eax, [esp + 0x18]
push 3
push eax
mov byte [esp + 0x20], 0xef
mov byte [esp + 0x21], 0xbb
mov byte [esp + 0x22], 0xbf
call dword [0x41d270]
add esp, 0x10
lea ecx, [esp + 0x4c]
call dword [0x41d1d4]
mov byte [esp + 0x78], 2
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
jbe 0x40a358
call dword [0x41d350]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
jbe 0x40a370
call dword [0x41d350]
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x24]
je 0x40a431
cmp esi, dword [esp + 0x1c]
jb 0x40a38a
call dword [0x41d350]
mov eax, dword [esi]
sub eax, 0x10
call fcn.00404f93
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov byte [esp + 0x78], 3
call fcn.004046a9
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 3
jl 0x40a40a
push esi
call dword [0x41d41c]
test eax, eax
je 0x40a40a
cmp dword [esi - 4], 1
jle 0x40a3d5
push dword [esi - 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.0040158f
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
push 0x409ef5
push 1
push 1
push esi
call fcn.00409ac8
add esp, 0x18
cmp esi, edi
jne 0x40a3f9
xor eax, eax
jmp 0x40a401
push esi
call dword [0x41d36c]
pop ecx
lea edx, [esp + 0x10]
call fcn.0040149a
lea eax, [esi - 0x10]
mov byte [esp + 0x78], 2
call fcn.00401677
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
jb 0x40a427
call dword [0x41d350]
add dword [esp + 0x2c], 4
jmp 0x40a370
mov esi, dword [0x41d268]
push str._r_n_________________________________________r_n
push ebx
call esi
push dword [esp + 0x50]
push str.Total_Files:__d
push ebx
call esi
add esp, 0x14
push ebx
call dword [0x41d26c]
pop ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 1
call dword [0x41d1d8]
lea esi, [esp + 0x30]
call fcn.004049c5
lea esi, [esp + 0x14]
call fcn.004049c5
xor eax, eax
inc eax
jmp 0x40a4ac
cmp esi, edi
jne 0x40a485
mov esi, 0x422208
push esi
push str.log_file_md5_fail._get_md5_fail__s
push 0x4213ac
call fcn.004124b5
add esp, 0xc
lea esi, [esp + 0x30]
call fcn.004049c5
lea esi, [esp + 0x14]
call fcn.004049c5
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00419bec
mov esp, ebp
pop ebp
ret