Function at 0x48b7d0
Capabilities:
Get file size
Get file version info
Get session user name
Write file on windows

Disassembly:
sub esp, 0x47c
push ebp
push edi
push 0x4d6b68
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
mov eax, dword [0x4d6e0c]
xor edi, edi
cmp eax, edi
je 0x48bb0c
cmp dword [0x4aae94], 0xffffffff
jne 0x48bae6
mov eax, dword [0x4aae90]
push ebx
cmp eax, edi
push esi
je 0x48b9c8
lea eax, [esp + 0x180]
push 0x104
push eax
push edi
push str.Debug_Log_Path
push str.Internal
call sub.Storm.dll_Ordinal_422
test eax, eax
jne 0x48b844
push 0x4ad984
push edi
push str.Debug_Log_Path
push str.Internal
call sub.Storm.dll_Ordinal_425
mov al, byte [esp + 0x180]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test al, al
jne 0x48b8a9
lea ecx, [esp + 0x7c]
push 0x104
push ecx
push edi
call esi
test eax, eax
jne 0x48b86c
mov byte [esp + 0x7c], al
jmp 0x48b88a
lea edx, [esp + 0x7c]
push 0x5c
push edx
call fcn.0047c8d0
add esp, 8
cmp eax, edi
jne 0x48b886
mov byte [esp + 0x7c], 0
jmp 0x48b88a
mov byte [eax + 1], 0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x180]
push eax
push str._sErrors_
push 0x104
push ecx
call fcn.00489aa0
add esp, 0x10
lea edx, [esp + 0x180]
push edx
call fcn.0048c0a0
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0x20
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x48b8d9
mov byte [esp + 0x28], al
lea edx, [esp + 0x388]
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x48]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
call esi
test eax, eax
je 0x48b988
lea eax, [esp + 0x24]
lea ecx, [esp + 0x388]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x48b988
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
lea edx, [esp + 0x388]
push ebx
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x48b97a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x494fdc
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48b97a
mov ecx, dword [esp + 0x10]
cmp ecx, 0x34
jb 0x48b964
mov ecx, 0x34
mov esi, dword [esp + 0x14]
mov edx, ecx
lea edi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ecx, eax
and edx, 0xffff
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x18c]
push eax
push ecx
push str._s_s_02u_02u_02u.ERR
push 0x104
push 0x4d6d04
call fcn.00489aa0
add esp, 0x20
mov ecx, dword [0x4aae90]
or ebp, 0xffffffff
xor ebx, ebx
test ecx, ecx
sete bl
cmp ebx, 2
jge 0x48bab7
push 0
push pe_nt_image_headers32
push 4
push 0
push 1
push 0x40000000
push 0x4d6d04
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x48baa0
push 0x5c
push 0x4d6d04
call fcn.0047c8d0
mov edx, eax
add esp, 8
test edx, edx
jne 0x48ba23
mov edx, 0x4d6d04
mov eax, dword [0x4aae98]
mov ecx, 0x40
mov dword [esp + 0x284], eax
xor eax, eax
lea edi, [esp + 0x288]
lea esi, [esp + 0x284]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x284]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4d6d04
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, 2
rep movsb byte es:[edi], byte [esi]
jl 0x48b9e1
jmp 0x48bab7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
jbe 0x48bab7
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor edi, edi
pop esi
cmp ebp, 0xffffffff
mov dword [0x4aae90], edi
mov dword [0x4aae94], ebp
pop ebx
jne 0x48badb
mov dword [0x4d6e0c], edi
pop edi
pop ebp
add esp, 0x47c
ret
push 2
push edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x4d6e0c]
mov edx, dword [0x4d6e08]
lea eax, [esp + 0x18]
push edi
push eax
mov eax, dword [0x4aae94]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x4d6e0c], edi
cmp dword [esp + 0x488], edi
je 0x48bb30
mov eax, dword [0x4aae94]
cmp eax, 0xffffffff
je 0x48bb30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4aae94], 0xffffffff
push 0x4d6b68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop edi
pop ebp
add esp, 0x47c
ret