Function at 0x409db0
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 [0x440014]
xor eax, ebp
mov dword [esp + 0x40], eax
push 0x43acd0
push ecx
call fcn.0041e056
add esp, 8
test eax, eax
je 0x409e3d
mov esi, eax
push eax
call fcn.0041a274
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0041a5eb
add esp, 8
test eax, eax
je 0x409e88
mov eax, dword [0x4426f4]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409fcb
push edi
push str.GetManifestContents:_error_stating_manifest_file:__S
push 0x4424e8
call fcn.00410520
add esp, 0xc
xor edi, edi
push esi
call fcn.0041f2e7
add esp, 4
jmp 0x409e73
mov eax, dword [0x4426f4]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a00e
push edi
push str.GetManifestContents:_error_opening_manifest_file:__S
push 0x4424e8
call fcn.00410520
add esp, 0xc
xor edi, edi
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00412e03
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.00420172
add esp, 4
test eax, eax
je 0x409e30
test ebx, ebx
mov dword [esp + 4], eax
je 0x409ee1
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.0041fa36
add esp, 0x10
cmp eax, esi
jne 0x409f26
add edi, esi
sub ebx, esi
jne 0x409eae
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 8]
jmp 0x409ee5
xor ebx, ebx
mov edi, eax
mov byte [edi], 0
lea eax, [ebx + ebx]
add eax, 2
push eax
call fcn.00420172
add esp, 4
test eax, eax
je 0x409f74
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 0x409f7a
push ebx
call fcn.0041fc39
add esp, 4
jmp 0x409e32
mov eax, dword [0x4426f4]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a051
push dword [esp + 0xc]
push str.GetManifestContents:_error_reading_manifest_file:__S
push 0x4424e8
call fcn.00410520
add esp, 0xc
push dword [esp + 4]
call fcn.0041fc39
add esp, 4
xor edi, edi
mov esi, dword [esp + 8]
jmp 0x409e32
push dword [esp + 4]
jmp 0x409fbe
mov eax, dword [0x4426f4]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a094
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__lu
push 0x4424e8
call fcn.00410520
add esp, 0xc
push ebx
call fcn.0041fc39
add esp, 4
push edi
call fcn.0041fc39
add esp, 4
jmp 0x409e30
push 0x4426f4
call fcn.00412457
add esp, 4
cmp dword [0x4426f4], 0xffffffff
jne 0x409e1d
mov dword [0x4424e8], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f4
call fcn.004124a9
add esp, 4
jmp 0x409e1d
push 0x4426f4
call fcn.00412457
add esp, 4
cmp dword [0x4426f4], 0xffffffff
jne 0x409e5e
mov dword [0x4424e8], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f4
call fcn.004124a9
add esp, 4
jmp 0x409e5e
push 0x4426f4
call fcn.00412457
add esp, 4
cmp dword [0x4426f4], 0xffffffff
jne 0x409f47
mov dword [0x4424e8], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f4
call fcn.004124a9
add esp, 4
jmp 0x409f47
push 0x4426f4
call fcn.00412457
add esp, 4
cmp dword [0x4426f4], 0xffffffff
jne 0x409f9b
mov dword [0x4424e8], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f4
call fcn.004124a9
add esp, 4
jmp 0x409f9b