Function at 0x4098f0
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 0x43849a
push ecx
call fcn.0041d30b
add esp, 8
test eax, eax
je 0x40997d
mov esi, eax
push eax
call fcn.00419c59
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00419fd7
add esp, 8
test eax, eax
je 0x4099c8
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409b01
push edi
push str.GetManifestContents:_error_stating_manifest_file:__S
push 0x43f3e8
call fcn.0040ff00
add esp, 0xc
xor edi, edi
push esi
call fcn.0041e639
add esp, 4
jmp 0x4099b3
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409b44
push edi
push str.GetManifestContents:_error_opening_manifest_file:__S
push 0x43f3e8
call fcn.0040ff00
add esp, 0xc
xor edi, edi
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00412591
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.0041f18c
add esp, 4
test eax, eax
je 0x409970
mov dword [esp + 0xc], edi
test ebx, ebx
mov edi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], eax
je 0x409a1b
mov edi, dword [esp + 4]
mov eax, 0x7fffffff
mov esi, 0x7fffffff
cmp ebx, eax
cmovb esi, ebx
push dword [esp + 8]
push esi
push 1
push edi
call fcn.0041eb0c
add esp, 0x10
cmp eax, esi
jne 0x409a5b
add edi, esi
sub ebx, esi
jne 0x4099f2
mov esi, dword [esp + 0x24]
mov byte [edi], 0
lea eax, [esi + esi + 2]
push eax
call fcn.0041f18c
add esp, 4
test eax, eax
je 0x409a92
mov edi, eax
inc esi
push esi
push eax
push 0xffffffffffffffff
mov esi, dword [esp + 0x10]
push esi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x409aa9
push esi
call fcn.0041ed02
add esp, 4
jmp 0x409aa0
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409b87
push dword [esp + 0xc]
push str.GetManifestContents:_error_reading_manifest_file:__S
push 0x43f3e8
call fcn.0040ff00
add esp, 0xc
push dword [esp + 4]
call fcn.0041ed02
add esp, 4
xor edi, edi
mov esi, dword [esp + 8]
jmp 0x409972
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov esi, dword [esp + 8]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0xc
push dword [esp + 4]
call fcn.0041ed02
add esp, 4
push edi
call fcn.0041ed02
add esp, 4
jmp 0x409970
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40995d
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40995d
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40999e
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40999e
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x409a7c
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x409a7c
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x409ace
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x409ace