Function at 0x4798fd
Capabilities:
Get common file path
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows
Terminate process

Disassembly:
mov eax, str.iext1.fnr.bbs.125.la
sub esp, 8
test eax, eax
mov dword [0x6dc42c], 0x6c3620
mov dword [0x6dc428], 0x47a100
je 0x4798ca
cmp word [str.iext1.fnr.bbs.125.la], 0
je 0x4798ca
mov ecx, 0x47a100
test ecx, ecx
je 0x4798ca
lea edx, [esp]
lea eax, [esp + 4]
push edx
push eax
mov ecx, 0x6dc420
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call 0x4798e0
mov ecx, dword [0x6dc424]
test ecx, ecx
je 0x4798a6
mov ecx, dword [ecx + 8]
jmp 0x4798a8
xor ecx, ecx
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 4]
push ecx
push edx
push eax
call fcn.0047a150
add esp, 0x10
test eax, eax
jne 0x4798c4
add esp, 8
ret
call eax
add esp, 8
ret
push 0
push 0
call fcn.0049e9f3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0xffffffffffffffff
push 0x4bc9e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], esi
mov eax, dword [esi]
test eax, eax
jne 0x479e08
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
test eax, eax
jne 0x479928
push eax
push 0x104
mov ecx, ebx
call fcn.0047c1a0
jmp 0x479967
mov eax, dword [eax + 0xc]
cmp eax, 0x104
jae 0x479941
add eax, 0x1104
push 0
push eax
mov ecx, ebx
call fcn.0047c3e0
mov eax, dword [ebx]
mov ecx, 0x104
mov dword [eax], 0x104
mov eax, dword [ebx]
cmp dword [eax + 0xc], ecx
jbe 0x479967
mov edx, dword [eax + 8]
inc ecx
mov word [edx + ecx*2 - 2], 0
mov eax, dword [ebx]
cmp ecx, dword [eax + 0xc]
jb 0x479955
mov eax, dword [ebx]
test eax, eax
je 0x479972
mov eax, dword [eax + 8]
jmp 0x479974
xor eax, eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx]
test eax, eax
je 0x479996
mov eax, dword [eax + 8]
push eax
call fcn.0047d380
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx], eax
mov edi, dword [esi + 0xc]
test edi, edi
je 0x479a12
push edi
call fcn.0047d380
mov esi, eax
add esp, 4
test esi, esi
je 0x479a12
cmp dword [ebx], 0
jne 0x4799c1
lea edx, [esi + 0x1000]
push 0
push edx
mov ecx, ebx
call fcn.0047c3e0
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, dword [eax + 0xc]
lea ebp, [edx + esi]
cmp ebp, ecx
ja 0x4799d6
lea ecx, [esi + esi]
mov esi, edi
jmp 0x4799ef
lea eax, [ebp + 0x1000]
push 0
push eax
mov ecx, ebx
call fcn.0047c3e0
mov eax, dword [ebx]
lea ecx, [esi + esi]
mov esi, edi
mov edx, dword [eax]
mov eax, dword [eax + 8]
lea edi, [eax + edx*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov word [ecx + ebp*2], 0
mov edx, dword [ebx]
mov dword [edx], ebp
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x28]
xor ebp, ebp
push eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x2c], ebp
call dword [ecx + 8]
mov edi, eax
mov eax, dword [esp + 0x364]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x2c], edi
je 0x479a3f
mov dword [eax], edi
mov eax, dword [esp + 0x364]
cmp eax, ebp
je 0x479a50
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx]
mov dword [esp + 0x358], ebp
cmp eax, ebp
je 0x479a6a
mov esi, dword [eax + 8]
jmp 0x479a6c
xor esi, esi
mov eax, dword [0x6dc414]
cmp eax, ebp
jne 0x479aa1
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
je 0x479ce9
push str.PathFileExistsW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [0x6dc414], eax
je 0x479ce9
push esi
call eax
cmp eax, ebp
je 0x479ce9
mov eax, dword [ebx]
cmp eax, ebp
je 0x479ab7
mov esi, dword [eax + 8]
jmp 0x479ab9
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x479acc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebp
push ebp
push 0x80
push 3
push ebp
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x479ce9
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebp
mov dword [esp + 0x18], esi
je 0x479cd2
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x30], ebp
jne 0x479b22
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x479cd2
test ebp, ebp
jle 0x479cd2
push ebp
call fcn.004ae1dc
mov ecx, eax
mov eax, dword [esp + 0x1c]
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [esp + 0x34], ecx
je 0x479cc1
lea edx, [esp + 0x24]
push edi
push edx
push ebp
push ecx
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x479cc1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp ecx, edi
mov esi, eax
mov word [esp + 0x40], di
je 0x479c91
cmp eax, edi
je 0x479c91
push 0xf0000000
push 1
push edi
lea eax, [esp + 0x30]
push edi
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x479c72
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x479c72
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push edi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x479c72
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea edx, [esp + 0x20]
push edi
push edx
push edi
push 2
push eax
mov dword [esp + 0x34], 4
call esi
test eax, eax
je 0x479c72
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049d9f7
mov edi, eax
add esp, 4
test edi, edi
je 0x479c70
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 0
push edx
push edi
push 2
push eax
call esi
test eax, eax
je 0x479c67
mov eax, dword [esp + 0x20]
xor ebp, ebp
xor esi, esi
test eax, eax
jbe 0x479c63
mov cl, byte [esi + edi]
lea eax, [esp + ebp*2 + 0x40]
mov byte [esp + 0x3c], cl
mov edx, dword [esp + 0x3c]
and edx, 0xff
push edx
push str._02x
push eax
call fcn.0049ec5e
add esp, 0xc
add ebp, eax
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x479c34
mov ebp, dword [esp + 0x30]
push edi
call fcn.0049d90e
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x479c81
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x479c91
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xc4]
push ecx
push ebp
push edx
call fcn.00479fc0
lea eax, [esp + 0xd0]
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.0049ec29
add esp, 0x14
test eax, eax
jne 0x479cc1
mov byte [esp + 0x13], al
mov edx, dword [esp + 0x34]
push edx
call fcn.004ae205
mov edi, dword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00479f50
mov al, byte [esp + 0x13]
test al, al
je 0x479dd4
xor ebp, ebp
mov eax, dword [ebx]
cmp eax, ebp
je 0x479cf4
mov eax, dword [eax + 8]
jmp 0x479cf6
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.00479e70
test eax, eax
setne al
test al, al
jne 0x479d71
push ebp
call fcn.0049eb4d
push eax
call fcn.0049c822
push 6
lea eax, [esp + 0x3c]
push 0x14
push eax
call fcn.0047b090
add esp, 0x14
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x360], 1
call fcn.0047af30
lea ecx, [esp + 0x30]
mov byte [esp + 0x358], 0
call fcn.0047be20
mov eax, dword [ebx]
cmp eax, ebp
je 0x479d58
mov eax, dword [eax + 8]
jmp 0x479d5a
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.00479e70
test eax, eax
setne al
test al, al
je 0x479d8f
mov ecx, dword [esp + 0x28]
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00479f90
test eax, eax
je 0x479d8f
lea ecx, [esp + 0x18]
call fcn.00479f50
jmp 0x479dd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14c]
push 0x6c3660
push edx
call fcn.0049ec5e
add esp, 0xc
lea eax, [esp + 0x148]
push ebp
push 0x6c364c
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebp
call fcn.0049ea5a
xor ebp, ebp
mov ebx, dword [ebx]
cmp ebx, ebp
je 0x479de1
mov eax, dword [ebx + 8]
jmp 0x479de3
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x38]
mov esi, eax
mov dword [esp + 0x358], 0xffffffff
mov dword [ecx], esi
lea ecx, [esp + 0x18]
call fcn.00479f50
mov eax, esi
mov ecx, dword [esp + 0x350]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34c
ret 8