Function at 0x4064a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
push esi
push edi
mov dword [esp + 0x40], ecx
je 0x40676a
add ecx, 4
push str.Plugin
push ecx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x18], ecx
call fcn.00404940
mov ecx, dword [eax + 0x18]
mov edi, 0x10
add esp, 0xc
cmp ecx, edi
jb 0x4064eb
mov eax, dword [eax + 4]
jmp 0x4064ee
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push eax
call esi
cmp dword [esp + 0x38], edi
jb 0x40650b
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00418537
add esp, 4
mov edx, dword [esp + 0xc]
push str.PluginThunder
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404940
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, edi
jb 0x40652e
mov eax, dword [eax + 4]
jmp 0x406531
add eax, 4
push ebx
push eax
call esi
cmp dword [esp + 0x38], edi
jb 0x406548
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00418537
add esp, 4
mov edx, dword [esp + 0xc]
push str.PluginThunderAtOnce
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404940
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, edi
jb 0x40656b
mov eax, dword [eax + 4]
jmp 0x40656e
add eax, 4
push ebx
push eax
call esi
cmp dword [esp + 0x38], edi
jb 0x406585
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00418537
add esp, 4
cmp dword [str.Name], ebx
je 0x4066ec
mov esi, 0x427108
mov dword [esp + 0x10], esi
lea ebx, [ebx]
cmp dword [esi + 4], ebx
je 0x40660a
mov edx, dword [esp + 0xc]
push str.PluginThunderPlugin.ini
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00404940
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, edi
jb 0x4065c8
mov eax, dword [eax + 4]
jmp 0x4065cb
add eax, 4
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx]
push ecx
push eax
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x5c], edi
jb 0x4065f5
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00418537
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jmp 0x4066da
xor eax, eax
mov byte [esp + 0x60], bl
mov ecx, 0x40
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
call fcn.00405df0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x70]
push str.XunleiBHO_d._d._d._d.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x24]
push str.PluginThunderPlugin.ini
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00404940
mov ecx, dword [eax + 0x18]
mov edi, 0x10
add esp, 0x24
cmp ecx, edi
jb 0x406697
mov eax, dword [eax + 4]
jmp 0x40669a
add eax, 4
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x64]
push ecx
push eax
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x38], edi
jb 0x4066c5
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00418537
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov edi, 0x10
mov eax, dword [esi + 8]
add esi, 8
cmp eax, ebx
mov dword [esp + 0x10], esi
jne 0x4065a0
cmp dword [str.Name], ebx
je 0x40676a
mov edi, 0x427150
mov esi, edi
jmp 0x406700
mov edx, dword [esp + 0xc]
push str.PluginThunderAtOncePlugin.ini
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404940
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, 0x10
jb 0x406724
mov eax, dword [eax + 4]
jmp 0x406727
add eax, 4
mov ecx, dword [esi + 4]
mov edx, dword [edi]
push eax
push ecx
push edx
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x38], 0x10
jb 0x40674e
mov eax, dword [esp + 0x24]
push eax
call fcn.00418537
add esp, 4
mov eax, dword [esi + 8]
add esi, 8
cmp eax, ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov edi, esi
jne 0x406700
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4