Function at 0x409cb0
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 0x438464
push ecx
call fcn.0041db22
add esp, 8
test eax, eax
je 0x409d3d
mov esi, eax
push eax
call fcn.0041a679
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0041a9f7
add esp, 8
test eax, eax
je 0x409d88
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409ed3
push edi
push str.GetManifestContents:_error_stating_manifest_file:__S
push 0x43f890
call fcn.00410af0
add esp, 0xc
xor ebx, ebx
push esi
call fcn.0041ee50
add esp, 4
jmp 0x409d73
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409f16
push edi
push str.GetManifestContents:_error_opening_manifest_file:__S
push 0x43f890
call fcn.00410af0
add esp, 0xc
xor ebx, ebx
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00412fa1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x24]
lea eax, [edi + 1]
push eax
call fcn.0041facb
add esp, 4
xor ebx, ebx
test eax, eax
je 0x409d32
test edi, edi
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], eax
je 0x409de8
mov ebx, dword [esp + 4]
nop word cs:[eax + eax]
nop
cmp edi, 0x7fffffff
mov esi, 0x7fffffff
cmovb esi, edi
push dword [esp + 8]
push esi
push 1
push ebx
call fcn.0041f44b
add esp, 0x10
cmp eax, esi
jne 0x409e2f
add ebx, esi
sub edi, esi
jne 0x409dc0
mov esi, dword [esp + 0x24]
mov byte [ebx], 0
lea eax, [esi + esi + 2]
push eax
call fcn.0041facb
add esp, 4
test eax, eax
je 0x409e66
mov ebx, 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 0x409e7b
push esi
call fcn.0041f641
add esp, 4
mov esi, dword [esp + 8]
jmp 0x409d32
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409f59
push dword [esp + 0xc]
push str.GetManifestContents:_error_reading_manifest_file:__S
push 0x43f890
call fcn.00410af0
add esp, 0xc
push dword [esp + 4]
call fcn.0041f641
add esp, 4
mov esi, dword [esp + 8]
jmp 0x409d30
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov esi, dword [esp + 8]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
push 0x43f890
call fcn.00410af0
add esp, 0xc
push dword [esp + 4]
call fcn.0041f641
add esp, 4
push ebx
call fcn.0041f641
add esp, 4
jmp 0x409d30
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x409d1d
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x409d1d
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x409d5e
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x409d5e
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x409e50
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x409e50
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x409ea0
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x409ea0