Function at 0x40bf70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c06b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x436a98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 5
ja case.0x40bfb1.1
mov edx, dword [ebp - 0x3c]
jmp dword [edx*4 + 0x40c1cc]
xor eax, eax
cmp dword [ebp + 8], 4
sete al
push eax
call fcn.0040bec0
add esp, 4
jmp case.0x40bfb1.1
push str.D7B7CDDF_EF6B_4070_9478_2B37F70BE7AA
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40bfee
xor eax, eax
jmp 0x40c1ba
push 0
push 0
push 0
push 6
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40c01a
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40c1ba
lea ecx, [ebp - 0x10]
call fcn.0041a5c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x40c03a
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
test eax, eax
je 0x40c069
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], 0
je 0x40c05b
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0041ac10
jmp 0x40c067
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041b0e0
jmp 0x40c031
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041a5e0
jmp case.0x40bfb1.1
call fcn.00418370
push eax
lea ecx, [ebp - 0x28]
call fcn.00401ad0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004099b0
test eax, eax
je 0x40c0e4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b5b0
mov eax, dword [ebp - 0x2c]
jmp 0x40c1ba
push 0x42de20
lea ecx, [ebp - 0x28]
call fcn.00418500
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c11f
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b5b0
mov eax, dword [ebp - 0x30]
jmp 0x40c1ba
lea ecx, [ebp - 0x24]
call fcn.00409e60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00404f50
push eax
push 0x42d478
push 0x42d468
call dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.00418500
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
je 0x40c18a
call fcn.0040bd90
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00409180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b5b0
mov eax, dword [ebp - 0x34]
jmp 0x40c1ba
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00409180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b5b0
mov eax, dword [ebp - 0x38]
jmp 0x40c1ba
call fcn.00418210
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret