Function at 0x40b710
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x42c6a0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 1
je 0x40b818
cmp dword [ebp - 0x240], 2
je 0x40b754
cmp dword [ebp - 0x240], 3
je 0x40b832
jmp 0x40bb38
push 0x425cc8
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b771
jmp 0x40bb38
push 0
push 0
push 0
push 6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40b79b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bb38
lea ecx, [ebp - 4]
call fcn.00416120
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x40b7b4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x40b7e3
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0
je 0x40b7d5
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 4]
call fcn.00416760
jmp 0x40b7e1
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.004168a0
jmp 0x40b7ab
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 4]
call fcn.00416140
jmp 0x40bb38
lea ecx, [ebp - 0x14]
call fcn.00416120
push 0
lea ecx, [ebp - 0x14]
call fcn.00416b20
lea ecx, [ebp - 0x14]
call fcn.00416140
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push 0
lea ecx, [ebp - 0x226]
push ecx
call fcn.00417120
add esp, 0xc
push 0x104
lea edx, [ebp - 0x228]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x425d18
push 0x5c
lea eax, [ebp - 0x228]
push eax
call fcn.00409050
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
lea ecx, [ebp - 0x234]
call fcn.00409d50
lea ecx, [ebp - 0x234]
call fcn.004098d0
test eax, eax
je 0x40b8ba
lea ecx, [ebp - 0x234]
call fcn.00409890
jmp 0x40bb38
push 0x425d30
lea ecx, [ebp - 0x234]
call fcn.00409d40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40b8ea
lea ecx, [ebp - 0x234]
call fcn.00409890
jmp 0x40bb38
lea ecx, [ebp - 0x22c]
call fcn.00409e20
lea ecx, [ebp - 0x22c]
call fcn.00409e40
push eax
push 0x425440
push 0x425420
call dword [ebp - 0x18]
lea ecx, [ebp - 0x230]
call fcn.00409e20
lea ecx, [ebp - 0x230]
call fcn.00409e40
push eax
push 0x425430
push 0x425420
call dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x22c]
call fcn.00409fa0
movzx edx, al
test edx, edx
jne 0x40b95a
push 0
lea ecx, [ebp - 0x230]
call fcn.00409fa0
movzx eax, al
test eax, eax
je 0x40b980
lea ecx, [ebp - 0x230]
call fcn.0040c0f0
lea ecx, [ebp - 0x22c]
call fcn.0040c0f0
lea ecx, [ebp - 0x234]
call fcn.00409890
jmp 0x40bb38
push 0x425c9c
push 0x5c
lea ecx, [ebp - 0x228]
push ecx
call fcn.00409050
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x230]
call fcn.00409d40
mov dword [ebp - 0x244], eax
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x40b9f7
lea ecx, [ebp - 0x230]
call fcn.00409d40
mov dword [ebp - 0x248], eax
push 0x425d40
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x248]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
call ecx
lea ecx, [ebp - 0x23c]
call fcn.00410cc0
lea ecx, [ebp - 0x22c]
call fcn.00409d40
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24c]
push ecx
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x40ba68
call fcn.0040b5f0
lea ecx, [ebp - 0x230]
call fcn.00409d40
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x23c]
call fcn.00409e40
push eax
push 0x106
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x250]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
jmp 0x40ba9e
lea ecx, [ebp - 0x230]
call fcn.00409d40
mov dword [ebp - 0x254], eax
lea ecx, [ebp - 0x23c]
call fcn.00409e40
push eax
push 0x105
mov ecx, dword [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
lea ecx, [ebp - 0x238]
call fcn.00410cc0
lea ecx, [ebp - 0x230]
call fcn.00409d40
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x238]
call fcn.00409e40
push eax
push 0x104
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
push 0
lea ecx, [ebp - 0x238]
call fcn.00409d40
push eax
lea ecx, [ebp - 0x23c]
call fcn.00409d40
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x238]
call fcn.00401130
lea ecx, [ebp - 0x23c]
call fcn.00401130
lea ecx, [ebp - 0x230]
call fcn.0040c0f0
lea ecx, [ebp - 0x22c]
call fcn.0040c0f0
lea ecx, [ebp - 0x234]
call fcn.00409890
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041710f
mov esp, ebp
pop ebp
ret