Function at 0x40a1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x43d00c]
mov edi, ecx
xor eax, ebp
mov dword [esp + 0x40], eax
push 0x43814a
push ecx
call fcn.0041d6e6
add esp, 8
test eax, eax
je 0x40a27d
mov esi, eax
push eax
call fcn.0041a248
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0041a5c6
add esp, 8
test eax, eax
je 0x40a2c8
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a40b
push edi
push str.GetManifestContents:_error_stating_manifest_file:__S
push 0x43f844
call fcn.0040e940
add esp, 0xc
xor edi, edi
push esi
call fcn.0041ea14
add esp, 4
jmp 0x40a2b3
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a44f
push edi
push str.GetManifestContents:_error_opening_manifest_file:__S
push 0x43f844
call fcn.0040e940
add esp, 0xc
xor edi, edi
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00412bfe
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.0041f68f
add esp, 4
test eax, eax
je 0x40a270
test ebx, ebx
mov dword [esp + 4], eax
je 0x40a326
mov dword [esp + 0xc], edi
mov edi, eax
mov dword [esp + 8], esi
nop
nop
cmp ebx, 0x7fffffff
mov esi, 0x7fffffff
cmovb esi, ebx
push dword [esp + 8]
push esi
push 1
push edi
call fcn.0041f00f
add esp, 0x10
cmp eax, esi
jne 0x40a368
add edi, esi
sub ebx, esi
jne 0x40a2f0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x40a328
xor ebx, ebx
mov byte [eax + ebx], 0
lea eax, [ebx + ebx + 2]
push eax
call fcn.0041f68f
add esp, 4
test eax, eax
je 0x40a3b4
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 0x40a3ba
push ebx
call fcn.0041f205
add esp, 4
jmp 0x40a272
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a493
push dword [esp + 0xc]
push str.GetManifestContents:_error_reading_manifest_file:__S
push 0x43f844
call fcn.0040e940
add esp, 0xc
push dword [esp + 4]
call fcn.0041f205
add esp, 4
mov esi, dword [esp + 8]
jmp 0x40a270
push dword [esp + 4]
jmp 0x40a3fe
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a4d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
push 0x43f844
call fcn.0040e940
add esp, 0xc
push ebx
call fcn.0041f205
add esp, 4
push edi
call fcn.0041f205
add esp, 4
jmp 0x40a270
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40a25d
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40a25d
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40a29e
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40a29e
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40a389
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40a389
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40a3db
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40a3db