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

Disassembly:
mov eax, 0x3c30
call fcn.00401ba0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x144]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x18], ebp
rep movsb byte es:[edi], byte [esi]
mov edi, str._szwbGuideoperation.htm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401000
xor ebx, ebx
test eax, eax
je 0x40111a
push ebx
push str.c:_szwb_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.szwbConfig.dat
push str.c:_szwb_
lea eax, [esp + 0x250]
push str._s_s
push eax
call fcn.00401b42
add esp, 0x10
lea ecx, [esp + 0x40]
push str.SZWBInit.dat
push str.c:_szwb_
push str._s_s
push ecx
call fcn.00401b42
add esp, 0x10
jmp 0x401165
push str.szwbConfig.dat
lea edx, [esp + 0x148]
push str._szwb_
push edx
lea eax, [esp + 0x254]
push str._s_s_s
push eax
call fcn.00401b42
add esp, 0x14
lea ecx, [esp + 0x144]
lea edx, [esp + 0x40]
push str.SZWBInit.dat
push str._szwb_
push ecx
push str._s_s_s
push edx
call fcn.00401b42
add esp, 0x14
lea eax, [esp + 0x144]
push str._szwb.ime
push eax
lea ecx, [esp + 0x458]
push str._s_s
push ecx
call fcn.00401b42
lea edx, [esp + 0x20]
push edx
call fcn.00401a66
lea eax, [esp + 0x24]
push eax
call fcn.00401906
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
add ecx, 0xf
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x34]
push ecx
call fcn.00401714
mov edx, dword [esp + 0x2c]
mov ecx, 0xcbe
xor eax, eax
lea edi, [esp + 0x960]
mov dword [esp + 0x958], edx
push 0x40a14c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push eax
call fcn.00401701
mov esi, eax
add esp, 0x24
cmp esi, ebx
jne 0x401246
lea ecx, [esp + 0x248]
push 0x40a148
push ecx
call fcn.00401701
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40122f
push 0x10
push 0x40a138
push 0x40a0f8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c30
ret 0x10
push esi
push 0x3304
lea edx, [esp + 0x944]
push ebp
push edx
call fcn.004015d7
add esp, 0x10
push esi
call fcn.00401581
add esp, 4
lea eax, [esp + 0x450]
push 0x40a0ec
push eax
call sub.IMM32.dll_ImmInstallIMEA
test eax, eax
jne 0x401287
push 0x10
push 0x40a138
push 0x40a0b0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c30
ret 0x10
lea ecx, [esp + 0x40]
push 0x40a14c
push ecx
call fcn.00401701
add esp, 8
cmp eax, ebx
jne 0x401428
lea edx, [esp + 0x40]
push 0x40a148
push edx
call fcn.00401701
add esp, 8
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4012fa
lea eax, [esp + 0x40]
lea ecx, [esp + 0x554]
push eax
push 0x40a090
push ecx
call fcn.00401b42
add esp, 0xc
lea edx, [esp + 0x554]
push 0x10
push 0x40a088
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c30
ret 0x10
push 0x7fc
call fcn.004014cf
add esp, 4
mov esi, eax
push 0x121
push 0x40a138
push 0x40a038
push ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x20], ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
dec eax
lea edi, [esi + 0x44]
neg eax
sbb eax, eax
mov ecx, 0x1ee
inc eax
mov dword [esi + 4], ebp
mov dword [esi], eax
mov eax, 0xffff
mov dword [esi + 0x28], ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov edx, str.1234567890
rep stosd dword es:[edi], eax
mov ecx, 3
lea edi, [esi + 0x50]
sub edx, ecx
movsx eax, byte [edx + ecx]
mov dword [edi], eax
inc ecx
add edi, 4
cmp ecx, 0xe
jl 0x401372
mov ecx, dword [esi + 0x7c]
mov eax, 0xffff
cmp ecx, eax
jne 0x401394
mov dword [esi + 0x7c], 0x60
cmp dword [esi + 0x80], eax
jne 0x4013a6
mov dword [esi + 0x80], 0x5c
mov eax, 0x10
mov edx, str.1234567890
lea ecx, [esi + 0x84]
sub edx, eax
movsx edi, byte [edx + eax]
mov dword [ecx], edi
inc eax
add ecx, 4
cmp eax, 0x1b
jl 0x4013b8
mov ecx, dword [esp + 0x14]
push ecx
push 0x7fc
push ebp
push esi
call fcn.004015d7
push esi
call fcn.00401466
push 0x7fc
call fcn.004014cf
add esp, 0x18
lea edx, [esp + 0x40]
mov edi, eax
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 0x18]
push ebx
push eax
push 0x7fc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call fcn.00401581
add esp, 4
lea ecx, [esp + 0x34c]
push 5
push ebx
push ebx
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c30
ret 0x10