Function at 0x40c48d
Capabilities:
Get file size
Get file version info
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4b8f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0x154], eax
mov eax, dword [ebp + 0x10]
inc ecx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x11c], eax
mov eax, dword [0x4bb748]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x160], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x12c], edi
test eax, eax
jne 0x40c514
test byte [0x4bf9a4], 0x40
mov dword [ebp - 0x128], ecx
jne 0x40c51a
mov dword [ebp - 0x128], ebx
cmp dword [edi + 0x14], ebx
jg 0x40c52a
mov dword [0x4d01ac], ecx
jmp 0x40d577
cmp dword [0x4bb74c], ebx
je 0x40c53a
mov dword [edi + 0x28], ecx
mov eax, dword [0x4bb748]
mov edx, dword [edi + 0x44]
test edx, edx
jne 0x40c546
cmp dword [edi + 0x40], ebx
je 0x40c55f
cmp dword [edi + 0x24], ebx
jne 0x40d564
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x40c55f
cmp word [ecx], bx
jne 0x40d564
test edx, edx
je 0x40c5ab
mov ecx, dword [edi]
test ecx, ecx
je 0x40c56d
cmp byte [ecx], bl
jne 0x40c594
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40c578
cmp byte [ecx], bl
jne 0x40c594
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x40c584
cmp word [ecx], bx
jne 0x40c594
cmp dword [edi + 0x28], ebx
jne 0x40c594
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40c5ab
cmp byte [ecx], bl
je 0x40c5ab
call fcn.0041e1d1
test eax, eax
je 0x40d577
push str.Second_level_data_requested_by_server_but_denied_by_policy_flags_r_n
jmp 0x40d572
cmp dword [0x4d01a8], ebx
je 0x40c5cf
cmp dword [edi + 0x28], ebx
je 0x40c5cf
call fcn.0041e1d1
test eax, eax
je 0x40d577
push str.Heap_requested_by_server_but_denied_by_flags_r_n
jmp 0x40d572
mov ecx, dword [0x4d01f8]
test ecx, ecx
je 0x40c604
test eax, eax
jne 0x40c604
mov eax, dword [edi + 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - 0x170], ebx
call ecx
mov eax, dword [0x4bb748]
cmp eax, 5
jne 0x40c64d
cmp dword [edi + 0x2c], ebx
jne 0x40c61d
push 0x30303030
call fcn.0044b12a
jmp 0x40d577
cmp dword [edi + 0x28], ebx
jne 0x40c63d
test esi, esi
je 0x40c63d
cmp word [esi], bx
je 0x40c63d
push dword [edi + 0x2c]
push esi
call fcn.0041db5d
test eax, eax
jne 0x40c647
jmp 0x40d577
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x148], ebx
mov eax, dword [edi]
test eax, eax
je 0x40c689
jmp 0x40c685
mov esi, eax
cmp byte [eax], bl
je 0x40c665
cmp byte [esi], 0x3b
je 0x40c665
inc esi
cmp byte [esi], bl
jne 0x40c65b
lea ecx, [ebp - 0x134]
push ebx
push ecx
push eax
cmp byte [esi], bl
jne 0x40c67b
call fcn.0040c207
mov eax, esi
jmp 0x40c685
mov byte [esi], bl
call fcn.0040c207
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x40c655
mov eax, dword [edi + 4]
test eax, eax
je 0x40c6c7
jmp 0x40c6c3
mov esi, eax
cmp byte [eax], bl
je 0x40c6a2
cmp byte [esi], 0x3b
je 0x40c6a2
inc esi
cmp byte [esi], bl
jne 0x40c698
lea ecx, [ebp - 0x134]
push 1
push ecx
push eax
cmp byte [esi], bl
jne 0x40c6b9
call fcn.0040c207
mov eax, esi
jmp 0x40c6c3
mov byte [esi], bl
call fcn.0040c207
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x40c692
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x40c716
cmp dword [eax], ebx
jbe 0x40c716
push eax
call fcn.00411b5b
mov esi, eax
mov dword [ebp - 0x140], esi
test esi, esi
jle 0x40c716
inc esi
push ebx
push esi
mov dword [ebp - 0x140], esi
call fcn.0042036b
mov dword [ebp - 0x158], eax
pop ecx
pop ecx
test eax, eax
je 0x40c710
push esi
push eax
push dword [ebp - 0x134]
call fcn.004110e4
jmp 0x40c716
mov dword [ebp - 0x140], ebx
mov eax, dword [edi + 8]
test eax, eax
je 0x40c72e
cmp byte [eax], bl
je 0x40c72e
lea ecx, [ebp - 0x130]
push ecx
push eax
call fcn.0040d58c
cmp dword [edi + 0x24], ebx
je 0x40c755
cmp dword [ebp - 0x138], ebx
je 0x40c755
lea eax, [ebp - 0x11c]
push eax
call fcn.00411488
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x120], esi
jmp 0x40c75d
mov eax, ebx
mov dword [ebp - 0x120], eax
lea esi, [edi + 0xc]
push esi
call fcn.0040dd94
test eax, eax
je 0x40d0bb
lea eax, [edi + 0x10]
push eax
call fcn.0040dd94
test eax, eax
je 0x40d0bb
cmp dword [esi], ebx
je 0x40c9d5
lea eax, [ebp - 0x13c]
push eax
push 0x47e1ac
push dword [esi]
call fcn.0046b4a0
add esp, 0xc
mov dword [ebp - 0x124], eax
push ebx
push 0x8000000
push 3
push ebx
push 3
push SysReAllocString
push eax
mov byte [ebp - 0x111], bl
call fcn.0041a485
mov esi, eax
mov dword [ebp - 0x164], esi
cmp esi, 0xffffffff
je 0x40c8ee
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x40c8db
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x40c8cf
push 0x47c7e1
push dword [ebp - 0x124]
call fcn.0041971d
push ebx
push esi
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x10c
mov esi, eax
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.0044f154
push ebx
push esi
mov dword [ebp - 0x10c], esi
call fcn.0042036b
mov esi, dword [ebp - 0x138]
add esp, 0x14
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call fcn.00401f74
cmp dword [ebp - 0x110], ebx
je 0x40ca1c
push dword [ebp - 0x10c]
push dword [ebp - 0x11c]
push dword [ebp - 0x110]
call fcn.0044ec08
add esp, 0xc
cmp dword [ebp - 0x110], ebx
je 0x40ca1c
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x2c]
call fcn.0044b309
test eax, eax
je 0x40ca1c
push esi
call fcn.0046d68f
pop ecx
push dword [ebp - 0x11c]
mov byte [ebp - 0x111], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x164]
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x111], bl
jne 0x40c99e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x47c7e1
push dword [ebp - 0x124]
mov dword [ebp - 0x14c], eax
call fcn.0041971d
mov esi, eax
lea eax, [ebp - 0x110]
push 0x10c
push ebx
push eax
mov byte [esi], 0x21
call fcn.0044f154
push 4
pop eax
push ebx
push eax
mov dword [ebp - 0x10c], eax
call fcn.0042036b
add esp, 0x14
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call fcn.00401f74
cmp dword [ebp - 0x110], ebx
je 0x40ca1c
push dword [ebp - 0x10c]
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x110]
call fcn.0044ec08
add esp, 0xc
cmp dword [ebp - 0x110], ebx
je 0x40ca1c
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x2c]
call fcn.0044b309
test eax, eax
je 0x40ca1c
push esi
call fcn.0046d68f
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
lea eax, [ebp - 0x13c]
push eax
push 0x47e1ac
push ebx
call fcn.0046b4a0
add esp, 0xc
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x40c7a3
lea esi, [edi + 0xc]
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40d045
cmp dword [edi + 0x24], ebx
je 0x40ccb1
push eax
call fcn.00401f4a
inc eax
push ebx
mov dword [ebp - 0x13c], eax
lea ecx, [eax + eax]
push ecx
call fcn.0042036b
mov esi, eax
mov dword [ebp - 0x11c], esi
pop ecx
pop ecx
test esi, esi
jne 0x40ca42
mov dword [ebp - 0x118], ebx
jmp 0x40d50d
push esi
mov edi, ebx
call fcn.0046d68f
pop ecx
cmp dword [ebp - 0x110], ebx
je 0x40d0bd
push dword [ebp - 0x110]
call fcn.0046d68f
pop ecx
jmp 0x40d0bd
push dword [ebp - 0x13c]
mov eax, dword [ebp - 0x120]
push esi
push eax
call fcn.00406256
lea eax, [ebp - 0x150]
push eax
push 0x47e1b0
push esi
call fcn.0046b4a0
add esp, 0xc
mov dword [ebp - 0x124], eax
push ebx
push 0x8000000
push 3
push ebx
push 3
push SysReAllocString
push eax
mov byte [ebp - 0x111], bl
call fcn.0041a485
mov esi, eax
mov dword [ebp - 0x14c], esi
cmp esi, 0xffffffff
je 0x40cbbb
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x164], eax
test eax, eax
je 0x40cba8
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x40cb9c
push 0x47c7e1
push dword [ebp - 0x124]
call fcn.0041971d
push ebx
push esi
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x10c
mov esi, eax
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.0044f154
push ebx
push esi
mov dword [ebp - 0x10c], esi
call fcn.0042036b
mov esi, dword [ebp - 0x13c]
add esp, 0x14
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call fcn.00401f74
cmp dword [ebp - 0x110], ebx
je 0x40d01d
push dword [ebp - 0x10c]
push dword [ebp - 0x138]
push dword [ebp - 0x110]
call fcn.0044ec08
add esp, 0xc
cmp dword [ebp - 0x110], ebx
je 0x40d01d
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x2c]
call fcn.0044b309
test eax, eax
je 0x40d01d
push esi
call fcn.0046d68f
pop ecx
push dword [ebp - 0x138]
mov byte [ebp - 0x111], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x14c]
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x111], bl
jne 0x40cc6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x47c7e1
push dword [ebp - 0x124]
mov dword [ebp - 0x13c], eax
call fcn.0041971d
mov esi, eax
lea eax, [ebp - 0x110]
push 0x10c
push ebx
push eax
mov byte [esi], 0x21
call fcn.0044f154
push 4
pop eax
push ebx
push eax
mov dword [ebp - 0x10c], eax
call fcn.0042036b
add esp, 0x14
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call fcn.00401f74
cmp dword [ebp - 0x110], ebx
je 0x40d01d
push dword [ebp - 0x10c]
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x110]
call fcn.0044ec08
add esp, 0xc
cmp dword [ebp - 0x110], ebx
je 0x40d01d
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x2c]
call fcn.0044b309
test eax, eax
je 0x40d01d
push esi
call fcn.0046d68f
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
lea eax, [ebp - 0x150]
push eax
push 0x47e1b0
push ebx
call fcn.0046b4a0
add esp, 0xc
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x40ca70
push dword [ebp - 0x11c]
call fcn.0046d68f
mov eax, dword [ebp - 0x120]
pop ecx
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x130]
push eax
push dword [edi + 0x28]
lea eax, [edi + 0x38]
push eax
push dword [edi + 0x10]
push dword [edi + 0xc]
push edx
push ecx
push dword [ebp - 0x158]
call fcn.0040e7cf
test eax, eax
je 0x40d0bb
cmp dword [0x4bcc80], ebx
je 0x40d084
cmp dword [0x4d0184], ebx
jne 0x40cd01
cmp dword [0x4bb748], 5
je 0x40d08d
xor edx, edx
inc edx
mov dword [ebp - 0x118], edx
mov dword [edi + 0x3c], edx
cmp dword [ebp - 0x128], ebx
je 0x40cd4c
mov ecx, dword [0x4d01f8]
test ecx, ecx
je 0x40cd4c
xor eax, eax
lea edi, [ebp - 0x174]
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x174]
push eax
push ecx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x170], edx
call fcn.0041f10c
mov edi, dword [ebp - 0x12c]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x4000
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
call fcn.00401821
test eax, eax
je 0x40ca11
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push 1
pop edx
cmp dword [eax], ebx
cmovne ecx, edx
mov dword [ebp - 0x124], ecx
cmp dword [edi + 0x28], ebx
je 0x40cda1
cmp dword [ebp - 0x144], ebx
jne 0x40cda1
inc ecx
mov dword [ebp - 0x124], ecx
test ecx, ecx
je 0x40cdad
call fcn.0041859b
xor edx, edx
inc edx
mov dword [0x4bcca8], ebx
mov eax, dword [edi + 0x2c]
cmp dword [eax], ebx
je 0x40ced3
mov dword [0x4bcca8], edx
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x11c], ebx
cmp dword [eax], ebx
jbe 0x40cec7
mov esi, ebx
mov dword [ebp - 0x120], ebx
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0xc]
add eax, 8
add eax, esi
push eax
call fcn.00406215
inc eax
push eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00406235
test al, al
je 0x40ca11
mov eax, dword [edi + 0x2c]
add esi, 8
push dword [ebp - 0x128]
mov eax, dword [eax + 0xc]
add eax, esi
mov esi, dword [ebp - 0x12c]
push eax
push esi
call fcn.0044ec08
add esp, 0xc
push dword [ebp - 0x128]
push esi
call fcn.00419a7e
mov ecx, dword [edi + 0x2c]
mov edx, dword [ebp - 0x120]
mov eax, dword [ecx + 0xc]
push dword [eax + edx + 4]
push dword [ecx]
push dword [ebp - 0x11c]
push dword [ebp - 0x124]
push ebx
call fcn.0041342b
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x120]
mov eax, dword [eax + 0xc]
push dword [eax + ecx + 4]
push dword [eax + ecx]
push esi
call fcn.0040167a
push esi
test eax, eax
je 0x40d4e6
call fcn.0046d68f
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [edi + 0x2c]
inc ecx
mov esi, dword [ebp - 0x120]
add esi, 0x10c
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], esi
cmp ecx, dword [eax]
jb 0x40cddd
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
inc edx
mov dword [ebp - 0x160], edx
mov dword [0x4bcca8], ebx
cmp dword [0x4bb748], 5
je 0x40cf1e
lea eax, [ebp - 0x15c]
push eax
call fcn.0040fc59
test eax, eax
je 0x40cf1e
push dword [ebp - 0x15c]
call fcn.00406215
inc eax
push eax
push dword [ebp - 0x15c]
push str.version.txt
call fcn.0040167a
test eax, eax
je 0x40ca11
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp dword [ebp - 0x134], ebx
je 0x40cf44
push dword [ebp - 0x140]
push dword [ebp - 0x158]
call fcn.0040c29c
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x40cf61
push eax
call fcn.0040c2c3
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp dword [edi + 0x10], ebx
je 0x40d1d6
lea eax, [ebp - 0x150]
push eax
push 0x47e1ac
push dword [edi + 0x10]
call fcn.0046b4a0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.0041a513
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x40d166
push ebx
push eax
call fcn.0042036b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40cfc3
push dword [ebp - 0x11c]
push ebx
push esi
call fcn.0044f154
add esp, 0xc
push esi
push dword [ebp - 0x11c]
push dword [ebp - 0x12c]
push dword [ebp - 0x120]
call sub.VERSION.dll_GetFileVersionInfoW
push str..ver
push dword [ebp - 0x120]
call fcn.0041971d
push dword [ebp - 0x11c]
mov dword [ebp - 0x128], eax
push esi
push eax
call fcn.0040167a
push dword [ebp - 0x128]
test eax, eax
je 0x40d4e6
call fcn.0046d68f
push esi
call fcn.0046d68f
pop ecx
jmp 0x40d19f
push esi
mov edi, ebx
call fcn.0046d68f
pop ecx
cmp dword [ebp - 0x110], ebx
je 0x40d03a
push dword [ebp - 0x110]
call fcn.0046d68f
pop ecx
push dword [ebp - 0x11c]
jmp 0x40ca37
mov ecx, dword [ebp - 0x140]
test ecx, ecx
jg 0x40ccb7
mov edx, dword [ebp - 0x130]
test edx, edx
je 0x40d065
cmp dword [edx], ebx
ja 0x40ccbd
cmp dword [edi + 0x28], ebx
jne 0x40ccbd
cmp dword [esi], ebx
jne 0x40ccbd
cmp dword [edi + 0x10], ebx
je 0x40cd01
jmp 0x40ccbd
cmp dword [edi + 0x30], ebx
jne 0x40cd01
push edi
push 0x41685b
push dword [0x4d01b4]
push 0x6d
push dword [0x4b84e0]
call fcn.00414ac7
test eax, eax
jne 0x40cd01
mov eax, dword [ebp - 0x154]
mov dword [eax + 8], 1
mov edi, ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x40d0ee
mov esi, ebx
cmp dword [eax], ebx
jbe 0x40d0e8
mov ebx, eax
mov eax, dword [ebx + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc esi
cmp esi, dword [ebx]
jb 0x40d0cf
mov eax, dword [ebp - 0x130]
xor ebx, ebx
push eax
call fcn.0044b66c
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x40d11f
cmp dword [ecx], ebx
jbe 0x40d119
mov eax, dword [ecx + 0xc]
cmp dword [eax + ebx*4], 0
je 0x40d114
push dword [eax + ebx*4]
call fcn.0046d68f
pop ecx
mov ecx, dword [ebp - 0x134]
inc ebx
cmp ebx, dword [ecx]
jb 0x40d0fc
push ecx
call fcn.0044b66c
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x40d130
push eax
call fcn.0046d68f
pop ecx
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40d141
push eax
call fcn.0046d68f
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xffffffffffffffff
push 0xffffffffffffffff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push 0x20
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, edi
jmp 0x40d579
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str..ver
push esi
mov dword [ebp - 0x154], eax
call fcn.0041971d
mov esi, eax
lea eax, [ebp - 0x154]
push 4
push eax
push esi
mov byte [esi], 0x21
call fcn.0040167a
push esi
test eax, eax
je 0x40d4e6
call fcn.0046d68f
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
lea eax, [ebp - 0x150]
push eax
push 0x47e1ac
push ebx
call fcn.0046b4a0
mov esi, eax
mov dword [ebp - 0x120], eax
add esp, 0xc
test esi, esi
jne 0x40cf89
cmp dword [edi + 0x30], ebx
je 0x40d1fd
lea eax, [edi + 0x18]
push eax
call fcn.0040191f
test eax, eax
je 0x40ca11
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp dword [edi + 0x28], ebx
je 0x40d50d
cmp dword [ebp - 0x144], ebx
jne 0x40d50d
cmp dword [0x4bb748], ebx
jne 0x40d2b2
cmp dword [0x4c9ad8], ebx
jne 0x40d243
mov dword [ebp - 0x118], ebx
call fcn.0041e1d1
test eax, eax
je 0x40d50d
push str.Failed_to_get_map_of_heap_file_r_n
jmp 0x40d508
push dword [0x4c9adc]
xor eax, eax
inc eax
push eax
push ebx
push dword [ebp - 0x124]
push dword [ebp - 0x160]
call fcn.0041342b
push dword [0x4c9adc]
xor eax, eax
mov ecx, str.memory.dmp
push dword [0x4c9ad8]
inc eax
test byte [0x4bf9a4], 0x20
mov dword [0x4bcca8], eax
mov eax, str.mdmpmem.hdmp
cmove eax, ecx
push eax
call fcn.0040167a
test eax, eax
jne 0x40d48a
mov dword [ebp - 0x118], ebx
call fcn.0041e1d1
test eax, eax
je 0x40d50d
push str.Failed_to_add_heap_file_to_cab_r_n
jmp 0x40d508
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x40d4f4
cmp word [eax], bx
je 0x40d4f4
push eax
call fcn.00401f4a
inc eax
push ebx
mov dword [ebp - 0x12c], eax
lea ecx, [eax + eax]
push ecx
call fcn.0042036b
mov esi, eax
mov dword [ebp - 0x144], esi
pop ecx
pop ecx
test esi, esi
jne 0x40d30b
mov dword [ebp - 0x118], ebx
call fcn.0041e1d1
test eax, eax
je 0x40d50d
push str.Failed_to_allocate_memory_for_heap_string_r_n
jmp 0x40d508
push dword [ebp - 0x12c]
mov eax, dword [ebp - 0x148]
push esi
push eax
call fcn.00406256
push 0x7c
push esi
call fcn.00419ba0
inc eax
mov dword [ebp - 0x12c], eax
xor eax, eax
inc eax
mov dword [0x4bcca8], eax
lea eax, [ebp - 0x13c]
push eax
push 0x47e1b0
push esi
call fcn.0046b4a0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x148], esi
push ebx
push 0x8000000
push 3
push ebx
push 3
push SysReAllocString
push esi
mov byte [ebp - 0x111], bl
call fcn.0041a485
mov dword [ebp - 0x138], eax
cmp eax, 0xffffffff
je 0x40d4c0
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x150], eax
test eax, eax
je 0x40d434
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x128], eax
test eax, eax
je 0x40d428
push 0x47c7e1
push esi
call fcn.0041971d
mov dword [ebp - 0x154], eax
test eax, eax
je 0x40d41c
push ebx
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push dword [ebp - 0x12c]
push ebx
push dword [ebp - 0x124]
push dword [ebp - 0x160]
call fcn.0041342b
push esi
push dword [ebp - 0x128]
mov esi, dword [ebp - 0x154]
push esi
call fcn.0040167a
push esi
test eax, eax
je 0x40d4a3
call fcn.0046d68f
mov esi, dword [ebp - 0x148]
xor eax, eax
inc eax
pop ecx
mov byte [ebp - 0x111], al
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x111], bl
je 0x40d4c0
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
lea eax, [ebp - 0x13c]
push eax
push 0x47e1b0
push ebx
call fcn.0046b4a0
mov esi, eax
mov dword [ebp - 0x148], eax
add esp, 0xc
test esi, esi
jne 0x40d352
push dword [ebp - 0x144]
call fcn.0046d68f
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [0x4bcca8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
jmp 0x40d50d
mov dword [ebp - 0x118], ebx
call fcn.0046d68f
push dword [ebp - 0x144]
call fcn.0046d68f
pop ecx
pop ecx
jmp 0x40d29b
call fcn.0041e1d1
test eax, eax
je 0x40d4d6
push esi
push str.Failed_to_add_heap_file_to_cab:__S
call fcn.0041f2fe
pop ecx
pop ecx
push 0x30303030
call fcn.0044b12a
push dword [ebp - 0x144]
mov dword [ebp - 0x118], ebx
call fcn.0046d68f
pop ecx
jmp 0x40d50d
mov dword [ebp - 0x118], ebx
call fcn.0041e1d1
test eax, eax
je 0x40d50d
push str.Heap_file_requested__but_none_to_send_r_n
call fcn.0041fda5
lea eax, [edi + 0x20]
lea esi, [edi + 0x1c]
mov dword [ebp - 0x12c], eax
mov edi, dword [ebp - 0x118]
push edi
push esi
push eax
call fcn.00401739
test eax, eax
je 0x40d52f
test edi, edi
jne 0x40d54e
call fcn.0041e1d1
test eax, eax
je 0x40d542
push str.CAB_creation_failed_r_n
call fcn.0041fda5
mov eax, dword [ebp - 0x12c]
mov edi, ebx
mov dword [esi], ebx
mov dword [eax], ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
jmp 0x40d0bd
call fcn.0041e1d1
test eax, eax
je 0x40d577
push str.Files_requested_by_server_but_denied_by_policy_flags_r_n
call fcn.0041fda5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d772
mov esp, ebp
pop ebp
ret 0x10