Function at 0x403105
Capabilities:
Create directory

Disassembly:
je 0x402e93
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x402e9f
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov byte [ebp - 4], 1
je 0x402eb4
mov edx, dword [ecx]
call dword [edx + 4]
push 0
push 1
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esp
mov eax, esp
lea edx, [ebp - 0x18]
push edx
mov dword [eax], ecx
call fcn.00415ad0
add esp, 0x10
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
mov byte [ebp - 4], 4
je 0x402edf
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x402eeb
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov eax, dword [esi]
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
je 0x402f00
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebx + 0x14]
lea edx, [ebp - 0x21c]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x402f10
mov eax, dword [str.sfxdatahigh.bnd]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f21
lea edi, [ebp - 0x21c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402f31
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x21c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00415b90
add esp, 8
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
mov byte [ebp - 4], 5
je 0x402f6c
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x402f78
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov byte [ebp - 4], 1
je 0x402f8d
mov edx, dword [ecx]
call dword [edx + 4]
push 0
push 1
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esp
mov eax, esp
lea edx, [ebp - 0x18]
push edx
mov dword [eax], ecx
call fcn.00415ad0
add esp, 0x10
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
mov byte [ebp - 4], 6
je 0x402fb8
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x402fc4
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov eax, dword [esi]
mov dword [ebx + 8], eax
mov byte [ebp - 4], 1
je 0x402fd9
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebx + 0x14]
lea edx, [ebp - 0x21c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x402fe2
mov eax, dword [str.gamedata.bnd]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ff3
lea edi, [ebp - 0x21c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403003
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x21c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00415b90
add esp, 8
mov esi, eax
mov ecx, dword [esi]
xor edi, edi
cmp ecx, edi
mov byte [ebp - 4], 7
je 0x403040
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
je 0x40304c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
mov byte [ebp - 4], 1
je 0x403061
mov edx, dword [ecx]
call dword [edx + 4]
push edi
push 1
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esp
mov eax, esp
lea edx, [ebp - 0x18]
push edx
mov dword [eax], ecx
call fcn.00415ad0
add esp, 0x10
mov esi, eax
mov ecx, dword [esi]
cmp ecx, edi
mov byte [ebp - 4], 8
je 0x40308b
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 0x10]
cmp ecx, edi
je 0x403097
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
mov eax, dword [esi]
mov dword [ebx + 0x10], eax
mov byte [ebp - 4], 1
je 0x4030ac
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0
je 0x4030bf
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp + 8]
lea ebx, [esi + 0x214]
push ebx
push 0
push 0
push 0x8005
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jne 0x403211
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030f1
sub eax, edx
je 0x403121
cmp byte [eax + esi + 0x213], 0x5c
je 0x403121
invalid
mov edi, ebx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403110
mov ax, word [0x4f0314]
mov word [edi], ax
mov eax, dword [ebp + 0xc]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403126
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403132
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403156
sub eax, edx
je 0x403183
mov ecx, dword [ebp + 8]
cmp byte [eax + ecx + 0x213], 0x5c
je 0x403183
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403171
mov dx, word [0x4f0314]
mov word [edi], dx
mov eax, dword [ebp + 0x10]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403188
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403194
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031b8
sub eax, edx
je 0x40321e
mov ecx, dword [ebp + 8]
cmp byte [eax + ecx + 0x213], 0x5c
je 0x40321e
dec ebx
mov edi, ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4031d3
mov dx, word [0x4f0314]
mov word [edi], dx
jmp 0x40321e
push str.Application_Data
call fcn.00413b80
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.00487e6f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc