Function at 0x403340
Capabilities:
Create directory
Get common file path
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406ccb
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push ebp
push esi
push edi
call fcn.00403a00
mov dword [0x73731c], eax
call fcn.00403a00
mov dword [0x737320], eax
mov eax, dword [0x40915c]
xor ebx, ebx
cmp eax, 2
mov dword [0x73731c], ebx
jne 0x4033a7
mov edi, str._HK9300_DS914__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x7372b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x4033fa
cmp eax, 1
jne 0x4033b3
mov edi, str._HK6802B__
jmp 0x4033df
cmp eax, 3
jne 0x4033da
mov edi, str._HK6805__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x7372b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x4033fa
mov edi, str._HKDVR__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x7372b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004024b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.00403a30
push str.SoftwareMicrosoftWindowscurrentVersion
push closesocket
lea ecx, [esp + 0x18]
mov dword [esp + 0x360], ebx
call fcn.00403ae0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push str.HKsign
call fcn.00403b90
lea ecx, [esp + 0x10]
call fcn.00403ac0
push str.SoftwareHKDVRDriver
push closesocket
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00403ae0
lea ecx, [esp + 0x20]
push ecx
push str.First
lea ecx, [esp + 0x18]
call fcn.00403b90
cmp dword [esp + 0x20], 1
jne 0x403487
push ebx
push str.First
lea ecx, [esp + 0x18]
call fcn.00403be0
lea ecx, [esp + 0x10]
call fcn.00403ac0
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x3c]
push str.ConfigHKDvr.dat
push edx
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [esp + 0x44]
push 0x409b1c
push eax
call ebx
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x403523
cmp dword [esp + 0x20], 1
jne 0x4035d3
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esp + 0x1c], 0
mov edi, str.Config
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x250]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], 0xc
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x250]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push ecx
jmp 0x403595
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4034da
lea ecx, [esp + 0x3c]
push str.ResHK001.dat
push ecx
call edi
lea edx, [esp + 0x44]
push 0x409b1c
push edx
call ebx
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4035d3
mov edi, str.Config
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x30], 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x150]
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.00402c70
lea ecx, [esp + 0x10]
mov dword [esp + 0x358], 0xffffffff
call fcn.00403a70
mov eax, 1
mov ecx, dword [esp + 0x350]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34c
ret
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 1
push 0x308
push 0x736fa8
call esi
mov eax, dword [0x736fb0]
add esp, 0x10
cmp eax, 0x1019
je 0x403674
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [esp + 0x40]
push str.ResHK001.dat
push eax
call edi
lea ecx, [esp + 0x48]
push 0x409b1c
push ecx
call ebx
mov ebp, eax
push ebp
push 1
push 0x308
push 0x736fa8
call esi
mov eax, dword [0x736fb0]
add esp, 0x24
cmp eax, 0x1019
je 0x403674
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x364]
add esp, 4
test eax, eax
je 0x40359c
push 0
push 0x24
push str.UPDATE_SYSTM_PAR
call fcn.004025a0
add esp, 4
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 7
jne 0x40359c
jmp 0x403856
push ebp
push 1
push 0x1932e4
push 0x4106d0
call esi
add esp, 0x10
mov esi, 0x409b10
mov eax, 0x5a39b0
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4036b8
test cl, cl
je 0x4036b4
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4036b8
add eax, 2
add esi, 2
test cl, cl
jne 0x403690
xor eax, eax
jmp 0x4036bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40381d
mov ecx, 0x64cb9
mov esi, 0x4106d0
mov edi, 0x5a3cc0
push ebp
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
call fcn.004024b0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
mov ebx, 0xd7
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 0x5a3cf0
mov edx, ecx
mov esi, edi
mov edi, 0x736fd1
mov ebp, 5
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 0x1cc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x409164]
mov edi, 0xa0
mov esi, 0x8c
cmp ecx, 0x2d0
jne 0x40376d
mov dword [eax - 4], 0x1db
mov dword [eax], edx
mov dword [eax + 8], 0x267
mov dword [eax + 0xc], edx
jmp 0x403808
cmp ecx, 0x280
jne 0x40378a
mov dword [eax - 4], 0x18b
mov dword [eax], edx
mov dword [eax + 8], 0x217
mov dword [eax + 0xc], edx
jmp 0x403808
cmp ecx, 0x1a4
jne 0x4037af
mov dword [eax - 4], 0xaf
mov dword [eax], 0x127
mov dword [eax + 8], 0x13b
mov dword [eax + 0xc], 0x127
jmp 0x403808
cmp ecx, 0x160
jne 0x4037d4
mov dword [eax - 4], 0x6b
mov dword [eax], 0x10c
mov dword [eax + 8], 0xf7
mov dword [eax + 0xc], 0x10c
jmp 0x403808
cmp ecx, 0x140
jne 0x4037f5
mov dword [eax - 4], 0x4b
mov dword [eax], 0xdc
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0xdc
jmp 0x403808
cmp ecx, 0xf0
jne 0x403808
mov dword [eax - 4], ebp
mov dword [eax], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
add eax, 0x4fa4
cmp eax, 0x736fd4
jl 0x40374d
jmp 0x4035a1
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x364]
add esp, 4
test eax, eax
je 0x40359c
push 0
push 0x24
push str.UPDATE_SYSTM_PAR
call fcn.004025a0
add esp, 4
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 7
jne 0x40359c
lea ecx, [esp + 0x10]
mov dword [esp + 0x358], 0xffffffff
call fcn.00403a70
xor eax, eax
jmp 0x4035ba