Function at 0x7e6994
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100598e6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [reloc.PSAPI.DLL_GetMappedFileNameW]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [reloc.PSAPI.DLL_GetMappedFileNameW]
xor eax, esp
push eax
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], reloc.PSAPI.DLL_GetMappedFileNameW
cmp dword [edi + reloc.PSAPI.DLL_GetMappedFileNameW], ebx
jne 0x7e6bf7
mov dword [esp + 0x34], reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp + 0x44], 0x1006f438
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], ebx
lea ecx, [esp + 0x94]
mov dword [esp + 0x18], 1
mov dword [esp + 0x94], 0x1005cc24
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.007e2424
lea edx, [esp + 0x4c]
push 0x20
lea ecx, [esp + 0x98]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
call fcn.007ebab4
mov byte [esp + 0xd4], al
cmp dword [esp + 0xcc], ebx
jne 0x7e6a81
mov eax, dword [esp + 0xa0]
or eax, 4
push ebx
push eax
lea ecx, [esp + 0x9c]
call fcn.007e22e4
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x44], 0x1005cc1c
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x34], 0x1005cc2c
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], 5
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x4c]
mov dword [esp + edx + 0x34], 0x1005cd4c
call fcn.007eaf14
mov dword [esp + 0x4c], 0x1005ccd4
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
lea eax, [esp + 0x44]
push 0x1006f204
push eax
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], 7
call fcn.007ebec4
add esp, 8
lea ecx, reloc.PSAPI.DLL_GetMappedFileNameW
push ecx
lea ecx, [esp + 0x38]
call fcn.007e9bd4
push 0x1006ef68
mov byte [esp + 0x14c], 8
call fcn.007ecebc
mov ecx, eax
add esp, 4
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x7e6b3a
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0xe4]
call fcn.007ea604
push 8
push 0x1006ef70
lea ecx, [esp + 0xe4]
mov byte [esp + 0x150], 9
call fcn.007eacc4
mov eax, dword [esp + 0xdc]
mov edi, 0x10
cmp dword [esp + 0xf0], edi
jae 0x7e6b88
lea eax, [esp + 0xdc]
push 0x1006ef7c
push eax
call fcn.007ecff2
add esp, 8
mov esi, eax
mov eax, dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW]
cmp dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], edi
jae 0x7e6baf
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov edx, dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW]
push esi
push 1
push edx
push eax
call fcn.007ed160
push esi
call fcn.007ed247
mov eax, dword [esp + 0xf0]
add esp, 0x14
cmp dword [esp + 0xf0], edi
jae 0x7e6be0
lea eax, [esp + 0xdc]
push 1
push ebx
push ebx
push eax
push 0x1006ef80
push ebx
call dword [0x1005a19c]
push ebx
call fcn.007ed53e
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
push eax
push 0x1006efd0
lea ecx, [edi + 0xe0]
call fcn.007fffd4
mov ecx, eax
call fcn.008069a4
push 0xffffffffffffffff
push ebx
lea ecx, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], 0xa
push ecx
mov esi, 0xf
lea ecx, [esp + 0x128]
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], esi
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], ebx
mov byte [esp + 0x128], 0
call fcn.007ea514
mov byte [esp + 0x148], 0xc
cmp dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], 0x10
jb 0x7e6c75
mov edx, dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW]
push edx
call fcn.007ec716
add esp, 4
cmp dword [edi + reloc.PSAPI.DLL_GetMappedFileNameW], 0x10
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], esi
mov dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], ebx
mov byte [esp + 0x100], 0
mov dword [esp + 0x1c], eax
mov dword [eax + 0x10], ebx
jb 0x7e6ca3
mov eax, dword [eax]
lea ecx, reloc.PSAPI.DLL_GetMappedFileNameW
mov byte [eax], 0
mov dword [esp + 0x24], ecx
call fcn.007fcd54
mov dword [esp + 0x20], eax
cmp eax, ebx
jbe 0x7e6d82
lea esi, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp + 0x28], esi
jmp 0x7e6cd8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
call fcn.007fd304
push eax
lea ecx, [esp + 0xe0]
call fcn.00807114
mov eax, 0x10
mov byte [esp + 0x148], 0xd
cmp dword [esi + 0x14], eax
jb 0x7e6d05
mov edx, dword [esi]
jmp 0x7e6d07
mov edx, esi
cmp dword [edi + reloc.PSAPI.DLL_GetMappedFileNameW], eax
jb 0x7e6d17
mov ecx, dword [edi + reloc.PSAPI.DLL_GetMappedFileNameW]
jmp 0x7e6d1d
lea ecx, reloc.PSAPI.DLL_GetMappedFileNameW
cmp dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], eax
mov eax, dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW]
jae 0x7e6d34
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov esi, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0xf0]
push eax
call fcn.007e8d84
mov byte [esp + 0x148], 0xc
lea ecx, [esp + 0xdc]
test eax, eax
je 0x7e6d75
call fcn.00805cf4
inc ebx
cmp ebx, dword [esp + 0x20]
jb 0x7e6cd4
jmp 0x7e6d82
mov dword [esp + 0x18], 0
call fcn.00805cf4
cmp dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW], 0x10
jb 0x7e6d9c
mov ecx, dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW]
push ecx
call fcn.007ec716
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.007ec707
mov esp, ebp
pop ebp
ret 4