Function at 0x40b2b0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43599b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov eax, dword [0x44be60]
push ebx
push 0
mov dword [esp + 0x2ac], eax
push 5
lea eax, [esp + 0xa8]
push eax
push 0
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40b2f9
xor al, al
jmp 0x40b509
push edi
lea edi, [esp + 0xa4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b302
push esi
mov ecx, 6
mov esi, str.KOEIShin_Sangokumusou_3_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0xa8]
mov byte [esp + eax + 0x1ac], cl
inc eax
test cl, cl
jne 0x40b320
lea edi, [esp + 0x1ac]
dec edi
jmp 0x40b340
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b340
mov ecx, dword [str.network.cfg]
mov edx, dword [0x4388e8]
mov eax, dword [0x4388ec]
mov dword [edi], ecx
push 0
lea ecx, [esp + 0xac]
push ecx
mov dword [edi + 4], edx
push 0
mov dword [edi + 8], eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x40b387
cmp eax, 0xb7
je 0x40b387
cmp eax, 0x50
jne 0x40b40b
push 1
lea ecx, [esp + 0x10]
call fcn.00403910
push 0x1b6
push 0x32
lea edx, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c8], 0
call fcn.00402dd0
test eax, eax
jne 0x40b3de
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x14]
mov edx, dword [esp + ecx + 0x34]
lea ecx, [esp + ecx + 0xc]
or eax, 2
test edx, edx
jne 0x40b3d6
or eax, 4
push 0
push eax
call fcn.004266b9
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x40b412
lea ecx, [esp + 0x74]
mov dword [esp + 0x2bc], 0xffffffff
call fcn.004039d0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], 0x4375a0
call fcn.004265cf
xor al, al
jmp 0x40b507
mov edx, dword [ebx + 0xc]
xor ecx, ecx
lea esi, [ebx + 0xc]
test edx, edx
sete cl
lea edi, [ebx + 8]
push 4
push ebx
mov dword [ebx], 0x3f800000
mov dword [edi], ecx
lea ecx, [esp + 0x1c]
call fcn.00402af0
push 4
lea edx, [ebx + 4]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402af0
push 4
push edi
lea ecx, [esp + 0x1c]
call fcn.00402af0
push 4
push esi
lea ecx, [esp + 0x1c]
call fcn.00402af0
push 0x104
lea eax, [ebx + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402af0
push 4
lea ecx, [ebx + 0x114]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402af0
push 0x14
lea edx, [ebx + 0x118]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402af0
push 0x14
add ebx, 0x12c
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402af0
lea ecx, [esp + 0x14]
call fcn.00402060
lea ecx, [esp + 0x18]
call fcn.004037c0
test eax, eax
jne 0x40b4e0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x14]
mov edx, dword [esp + ecx + 0x34]
lea ecx, [esp + ecx + 0xc]
or eax, 2
test edx, edx
jne 0x40b4d8
or eax, 4
push 0
push eax
call fcn.004266b9
lea ecx, [esp + 0x74]
mov dword [esp + 0x2bc], 0xffffffff
call fcn.004039d0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], 0x4375a0
call fcn.004265cf
mov al, 1
pop esi
pop edi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2a8]
pop ebx
call fcn.00418291
add esp, 0x2b4
ret