Function at 0x403870
Capabilities:
Accept command line arguments
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 8], 0x3e8
mov ecx, 0x7d0
xor eax, eax
mov edi, 0x405aa4
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
movsx eax, byte [eax]
cmp eax, 0x22
jne 0x4038ad
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
add eax, 1
mov dword [ebp - 0x80], eax
jmp 0x4038b6
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [ebp - 0x80], eax
mov edi, dword [ebp - 0x80]
mov edx, 0x50b93c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x22
push 0x50b93c
call sub.MSVCRT.dll_strchr
add esp, 8
test eax, eax
je 0x403908
push 0x22
push 0x50b93c
call sub.MSVCRT.dll_strchr
add esp, 8
add eax, 1
mov dword [ebp - 0x84], eax
jmp 0x403912
mov dword [ebp - 0x84], 0x50b93c
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 4], ecx
push 0x20
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_strchr
add esp, 8
test eax, eax
je 0x40393e
push 0x20
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_strchr
add esp, 8
mov byte [eax], 0
push 0x22
push 0x50b93c
call sub.MSVCRT.dll_strchr
add esp, 8
test eax, eax
je 0x403963
push 0x22
push 0x50b93c
call sub.MSVCRT.dll_strchr
add esp, 8
mov byte [eax], 0
push str..com
push 0x50b93c
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x4039ee
push str..COM
push 0x50b93c
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x4039ee
push str..exe
push 0x50b93c
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x4039ee
push str..EXE
push 0x50b93c
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x4039ee
mov edi, str..exe
mov edx, 0x50b93c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
push 0x50b93c
push 0x40b418
call sub.MSVCRT.dll__fullpath
add esp, 0xc
test eax, eax
jne 0x403a30
mov edi, 0x50b93c
mov edx, 0x40b418
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x405a78
push 0x40b418
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403bac
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
push edx
call sub.MSVCRT.dll__filelength
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403ba0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, dword [ebp - 0x10]
jne 0x403b94
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov dword [ebp - 0x18], 0
jmp 0x403ab7
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x14
cmp dword [ebp - 0x18], eax
jge 0x403b94
mov edi, str.Zuka
lea edx, [ebp - 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Buka
lea edx, [ebp - 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x403b8f
lea edi, [ebp - 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0x18], edx
jmp 0x403b65
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 4
cmp dword [ebp - 0x18], ecx
jg 0x403b8d
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [edx]
mov dword [eax*4 + 0x405aa4], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x403b5c
jmp 0x403b94
jmp 0x403aae
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_fclose
add esp, 4
call fcn.004010a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret