Function at 0x40a7a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edi, ecx
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [esp + 0x40], eax
push 0x4386ba
push ecx
call fcn.0041d63e
add esp, 8
test eax, eax
je 0x40a82d
mov esi, eax
push eax
call fcn.00419ff6
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0041a374
add esp, 8
test eax, eax
je 0x40a878
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a9bb
push edi
push str.GetManifestContents:_error_stating_manifest_file:__S
push 0x4403e8
call fcn.00410340
add esp, 0xc
xor edi, edi
push esi
call fcn.0041e96c
add esp, 4
jmp 0x40a863
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a9fe
push edi
push str.GetManifestContents:_error_opening_manifest_file:__S
push 0x4403e8
call fcn.00410340
add esp, 0xc
xor edi, edi
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00412b41
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x24]
lea eax, [ebx + 1]
push eax
call fcn.0041f4bf
add esp, 4
test eax, eax
je 0x40a820
test ebx, ebx
mov dword [esp + 4], eax
je 0x40a8d1
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov edi, eax
mov eax, 0x7fffffff
cmp ebx, eax
mov esi, 0x7fffffff
cmovb esi, ebx
push dword [esp + 8]
push esi
push 1
push edi
call fcn.0041ee3f
add esp, 0x10
cmp eax, esi
jne 0x40a916
add edi, esi
sub ebx, esi
jne 0x40a89e
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 8]
jmp 0x40a8d5
xor ebx, ebx
mov edi, eax
mov byte [edi], 0
lea eax, [ebx + ebx]
add eax, 2
push eax
call fcn.0041f4bf
add esp, 4
test eax, eax
je 0x40a964
mov edi, eax
inc ebx
push ebx
push eax
push 0xffffffffffffffff
mov ebx, dword [esp + 0x10]
push ebx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40a96a
push ebx
call fcn.0041f035
add esp, 4
jmp 0x40a822
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aa41
push dword [esp + 0xc]
push str.GetManifestContents:_error_reading_manifest_file:__S
push 0x4403e8
call fcn.00410340
add esp, 0xc
push dword [esp + 4]
call fcn.0041f035
add esp, 4
xor edi, edi
mov esi, dword [esp + 8]
jmp 0x40a822
push dword [esp + 4]
jmp 0x40a9ae
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40aa84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
push 0x4403e8
call fcn.00410340
add esp, 0xc
push ebx
call fcn.0041f035
add esp, 4
push edi
call fcn.0041f035
add esp, 4
jmp 0x40a820
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40a80d
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40a80d
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40a84e
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40a84e
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40a937
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40a937
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40a98b
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40a98b