Function at 0x41c5b0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x880
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x87c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x88c]
push esi
mov eax, 1
xor ebx, ebx
push 0x3ff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x8d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x94], bl
call sub.MSVCR80.dll_memset
push 0x3ff
lea ecx, [esp + 0x499]
push ebx
push ecx
mov byte [esp + 0x4a0], bl
call sub.MSVCR80.dll_memset
mov eax, dword [0x4269ac]
mov edx, dword [str.zbsharewarelog]
mov ecx, dword [0x4269b0]
mov dword [esp + 0x3c], eax
mov al, byte [0x4269b6]
push 0x31
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
mov dx, word [0x4269b4]
mov byte [esp + 0x4a], al
xor eax, eax
lea ecx, [esp + 0x71]
push ebx
push ecx
mov word [esp + 0x50], dx
mov dword [esp + 0x53], eax
mov dword [esp + 0x57], eax
mov dword [esp + 0x5b], eax
mov dword [esp + 0x5f], eax
mov dword [esp + 0x63], eax
mov dword [esp + 0x67], eax
mov dword [esp + 0x6b], eax
mov dword [esp + 0x6f], eax
mov word [esp + 0x73], ax
mov byte [esp + 0x75], al
mov byte [esp + 0x38], 0xd
mov byte [esp + 0x39], 0xa
mov byte [esp + 0x3a], bl
mov dword [esp + 0x3b], eax
mov word [esp + 0x3f], ax
mov byte [esp + 0x41], al
mov byte [esp + 0x78], bl
call sub.MSVCR80.dll_memset
add esp, 0x24
cmp ebp, ebx
je 0x41c84e
cmp esi, ebx
je 0x41c84e
push edi
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41c6ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 4]
pop edi
mov ecx, dword [esp + 0x888]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d7b2
add esp, 0x880
ret 4
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41c6f5
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
sub eax, edx
push ebx
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x64]
push eax
push edi
call esi
test eax, eax
je 0x41c83d
lea edx, [esp + 0x24]
lea ecx, [esp + 0x58]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x41c745
cmp al, bl
je 0x41c741
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x41c745
add ecx, 2
add edx, 2
cmp al, bl
jne 0x41c725
xor eax, eax
jmp 0x41c74a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41c83d
mov dword [esp + 0x10], 1
lea ebx, [ebx]
cmp byte [esp + 0x8c], 0xa
je 0x41c783
push ebx
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x98]
push edx
push edi
call esi
cmp dword [esp + 0x10], ebx
ja 0x41c760
push ebx
push ebx
push 1
push ebx
push ebx
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c826
cmp dword [esp + 0x10], ebx
jbe 0x41c810
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x3e8
lea ecx, [esp + 0x98]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jbe 0x41c810
xor eax, eax
cmp ecx, ebx
jbe 0x41c7f8
jmp 0x41c7e0
mov dl, byte [esp + eax + 0x8c]
sub dl, 2
mov byte [esp + eax + 0x48c], dl
add eax, 1
cmp eax, ecx
jb 0x41c7e0
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x498]
push ecx
push esi
call ebp
cmp dword [esp + 0x10], ebx
ja 0x41c7b0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, 1
jmp 0x41c6d3
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
call esi
push edi
call esi
mov eax, 3
jmp 0x41c6d3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x41c6d3
mov eax, 2
jmp 0x41c6d4