Function at 0x4021c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
xor ebx, ebx
push str.___Install__UTF_8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x200
call edi
push str.___InstallEnd_
mov dword [ebp - 0x14], eax
call edi
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [ecx + 8], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jbe 0x402372
cmp dword [ebp - 0xc], 0x80
jae 0x402369
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402369
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jbe 0x402369
sub eax, dword [ebp - 4]
lea edi, [ebp - 0x21c]
add eax, 0x200
mov dword [ebp - 4], eax
jmp 0x40232d
cmp dword [ebp - 0xc], 0x80
jae 0x40233a
cmp dword [ebp - 0x10], ebx
jne 0x40230f
push dword [ebp - 0x14]
push str.___Install__UTF_8
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4022d3
cmp dword [ebp + 0xc], ebx
je 0x4022a5
or dword [esi + 0x44], 2
mov eax, dword [ebp - 8]
xor ecx, ecx
inc ecx
cmp eax, dword [esi + 0x14]
jae 0x4022b3
or dword [esi + 0x44], ecx
cmp dword [esi + 0x38], ebx
jne 0x4022bb
mov dword [esi + 0x38], eax
inc dword [esi + 0x40]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
sub dword [ebp - 4], ecx
add edi, ecx
add eax, ecx
mov dword [ebp - 8], eax
jmp 0x40232d
cmp dword [ebp + 0xc], ebx
jne 0x4022e0
cmp dword [esi + 0x40], ebx
je 0x4022e0
inc dword [ebp - 0xc]
push dword [ebp - 0x1c]
push str.___InstallEnd_
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x402326
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 4], eax
add edi, eax
add dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
jmp 0x40232d
cmp byte [edi], 0x21
jne 0x402326
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x402326
mov eax, dword [ebp - 8]
sub eax, dword [esi + 0x38]
inc eax
mov dword [esi + 0x3c], eax
dec dword [ebp - 4]
inc edi
inc dword [ebp - 8]
mov eax, dword [ebp - 0x14]
inc eax
cmp dword [ebp - 4], eax
jae 0x402271
cmp dword [ebp - 4], ebx
je 0x402369
push dword [ebp - 4]
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov eax, 0x200
sub eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x20]
jb 0x402223
cmp dword [ebp + 0xc], ebx
je 0x402372
or dword [esi + 0x44], 4
cmp dword [esi + 0x3c], ebx
jne 0x40237b
xor eax, eax
jmp 0x4023cc
push ebx
push ebx
push dword [esi + 0x38]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [esi + 0x3c]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x3c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4023c2
mov eax, dword [ebp - 0x18]
mov byte [edi + eax], bl
push edi
lea eax, [esi + 0x5c]
mov dword [esi + 0x68], 0xfde9
call fcn.00401fb4
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
pop edi
pop ebx
leave
ret