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

Disassembly:
sub esp, 0x880
mov eax, dword [0x435028]
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 [0x42d344]
mov edx, dword [str.zbsharewarelog]
mov ecx, dword [0x42d348]
mov dword [esp + 0x3c], eax
mov al, byte [0x42d34e]
push 0x31
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
mov dx, word [0x42d34c]
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 0x421ece
cmp esi, ebx
je 0x421ece
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 0x421d6e
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.00422de8
add esp, 0x880
ret 4
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x421d75
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 0x421ebd
lea edx, [esp + 0x24]
lea ecx, [esp + 0x58]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x421dc5
cmp al, bl
je 0x421dc1
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x421dc5
add ecx, 2
add edx, 2
cmp al, bl
jne 0x421da5
xor eax, eax
jmp 0x421dca
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x421ebd
mov dword [esp + 0x10], 1
lea ebx, [ebx]
cmp byte [esp + 0x8c], 0xa
je 0x421e03
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 0x421de0
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 0x421ea6
cmp dword [esp + 0x10], ebx
jbe 0x421e90
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 0x421e90
xor eax, eax
cmp ecx, ebx
jbe 0x421e78
jmp 0x421e60
mov dl, byte [esp + eax + 0x8c]
sub dl, 2
mov byte [esp + eax + 0x48c], dl
add eax, 1
cmp eax, ecx
jb 0x421e60
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 0x421e30
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, 1
jmp 0x421d53
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
call esi
push edi
call esi
mov eax, 3
jmp 0x421d53
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x421d53
mov eax, 2
jmp 0x421d54