Function at 0x75e48c60
Capabilities:
Get file size
Query environment variable
Read file via mapping

Disassembly:
push 0x460
push 0x75e48e00
call fcn.75e3f44a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
xor ebx, ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
xor eax, eax
lea edi, [ebp - 0x438]
stosd dword es:[edi], eax
mov dword [ebp - 0x434], ebx
mov edi, dword [ebp + 0x18]
mov esi, 0x104
lea eax, [ebp - 0x42c]
test edi, 0x200
jne 0x75e6fc55
push 0x103
push ecx
push esi
push eax
call sub.ntdll.dll_wcsncpy_s
add esp, 0x10
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
push ebx
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
je 0x75e6fc63
push ebx
push ebx
push 3
push ebx
xor ebx, ebx
inc ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x46c], esi
cmp esi, 0xffffffff
je 0x75e48eb4
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [ebp - 0x468], eax
xor ecx, ecx
cmp eax, ecx
je 0x75e48e75
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x444], eax
test eax, eax
je 0x75e48e75
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x454], esi
mov eax, dword [ebp - 0x444]
lea ecx, [esi + eax]
mov dword [ebp - 0x43c], ecx
cmp ecx, eax
jb 0x75e48e75
sub ecx, eax
cmp ecx, 0x1a
jb 0x75e48e75
mov ecx, eax
mov dword [ebp - 0x440], ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x438], eax
xor edx, edx
mov dword [ebp - 4], edx
movzx eax, word [ebp - 0x458]
dec eax
je 0x75e48db7
dec eax
je 0x75e6fcc6
dec eax
jne 0x75e48e6e
cmp dword [ecx], 0x46464952
je 0x75e6fe1c
cmp word [ecx], dx
jne 0x75e48e6e
movzx eax, word [ecx + 2]
cmp ax, bx
jne 0x75e6fc71
movzx ecx, word [ecx + 4]
cmp cx, bx
jb 0x75e48e6e
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov eax, 0x100
cmp edx, eax
jne 0x75e6fc82
jmp 0x75e6fc80
xor eax, eax
cmp dword [ebp - 0x458], 3
setne al
inc eax
mov word [ebp - 0x452], ax
mov word [ebp - 0x450], cx
xor eax, eax
mov word [ebp - 0x454], ax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x444]
sub esp, 0x10
lea esi, [ebp - 0x444]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.75e48ec7
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x444], 0
je 0x75e48e8a
push dword [ebp - 0x444]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x468], 0
je 0x75e48e9f
push dword [ebp - 0x468]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x46c], 0
je 0x75e48eb4
push dword [ebp - 0x46c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x434]
call fcn.75e3f492
ret 0x14
push esi
push eax
push ecx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
jmp 0x75e48cc8
push 2
call fcn.75e43a4f
xor eax, eax
jmp 0x75e48eba
cmp ax, 2
je 0x75e48dd9
jmp 0x75e48e6e
xor edx, edx
cmp esi, eax
jne 0x75e6fc88
xor esi, esi
test edi, 0x10000
je 0x75e48e1c
cmp cx, bx
jne 0x75e48e1c
mov eax, dword [ebp - 0x444]
movzx eax, byte [eax + 6]
cmp eax, edx
jne 0x75e48e6e
mov eax, dword [ebp - 0x444]
movzx eax, byte [eax + 7]
cmp eax, esi
je 0x75e48e1c
jmp 0x75e48e6e
xor edi, edi
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x464], edx
mov dword [ebp - 0x448], edx
test dword [ebp + 0x18], 0x20000
je 0x75e6fdbf
call fcn.75e7d4e5
test eax, eax
je 0x75e6fd37
push 2
lea eax, [ebp - 0x430]
push eax
push esi
push dword [ebp - 0x444]
call dword [0x75ea0f94]
mov esi, eax
mov dword [ebp - 0x44c], esi
test esi, esi
je 0x75e6fd37
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x460], edi
test edi, edi
je 0x75e6fd30
lea esi, [edi + 0xe]
mov dword [ebp - 0x448], ebx
jmp 0x75e6fd3d
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov esi, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x444]
test edi, edi
jne 0x75e6fd52
mov edi, ecx
mov dword [ebp - 0x460], edi
lea esi, [ecx + 0xe]
mov eax, 0x4d42
cmp word [edi], ax
jne 0x75e48e6e
xor ebx, ebx
cmp dword [ebp - 0x448], ebx
jne 0x75e6fd78
mov eax, dword [ebp - 0x43c]
sub eax, ecx
mov dword [ebp - 0x430], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x28
jb 0x75e6fd86
mov dword [ebp - 0x464], eax
push dword [ebp - 0x430]
push esi
call fcn.75e9397e
test eax, eax
jne 0x75e6fdca
cmp dword [ebp - 0x448], ebx
je 0x75e48e6e
push dword [ebp - 0x44c]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push dword [ebp - 0x44c]
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x75e48e6e
mov esi, dword [ebp - 0x430]
jmp 0x75e6fd43
mov eax, dword [edi + 0xa]
cmp eax, 0x1a
jb 0x75e6fdee
mov ecx, dword [ebp - 0x430]
sub ecx, dword [ebp - 0x464]
cmp eax, ecx
ja 0x75e6fdee
lea eax, [eax + esi - 0xe]
mov dword [ebp - 0x45c], eax
jmp 0x75e6fdf4
mov dword [ebp - 0x45c], ebx
lea eax, [ebp - 0x45c]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x454]
push esi
call fcn.75e3e14e
mov dword [ebp - 0x434], eax
jmp 0x75e6fd96
lea eax, [ebp - 0x454]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.75e75b75
jmp 0x75e48e68