Function at 0x406640
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 0x40690a
add ecx, 4
push str.Plugin
push ecx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x18], ecx
call fcn.00404ae0
mov ecx, dword [eax + 0x18]
mov edi, 0x10
add esp, 0xc
cmp ecx, edi
jb 0x40668b
mov eax, dword [eax + 4]
jmp 0x40668e
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push eax
call esi
cmp dword [esp + 0x38], edi
jb 0x4066ab
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004186e7
add esp, 4
mov edx, dword [esp + 0xc]
push str.PluginThunder
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404ae0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, edi
jb 0x4066ce
mov eax, dword [eax + 4]
jmp 0x4066d1
add eax, 4
push ebx
push eax
call esi
cmp dword [esp + 0x38], edi
jb 0x4066e8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004186e7
add esp, 4
mov edx, dword [esp + 0xc]
push str.PluginThunderAtOnce
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404ae0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, edi
jb 0x40670b
mov eax, dword [eax + 4]
jmp 0x40670e
add eax, 4
push ebx
push eax
call esi
cmp dword [esp + 0x38], edi
jb 0x406725
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [str.Name], ebx
je 0x40688c
mov esi, 0x428108
mov dword [esp + 0x10], esi
lea ebx, [ebx]
cmp dword [esi + 4], ebx
je 0x4067aa
mov edx, dword [esp + 0xc]
push str.PluginThunderPlugin.ini
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00404ae0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, edi
jb 0x406768
mov eax, dword [eax + 4]
jmp 0x40676b
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 0x406795
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004186e7
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jmp 0x40687a
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.00405f90
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.00404ae0
mov ecx, dword [eax + 0x18]
mov edi, 0x10
add esp, 0x24
cmp ecx, edi
jb 0x406837
mov eax, dword [eax + 4]
jmp 0x40683a
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 0x406865
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004186e7
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 0x406740
cmp dword [str.Name], ebx
je 0x40690a
mov edi, 0x428150
mov esi, edi
jmp 0x4068a0
mov edx, dword [esp + 0xc]
push str.PluginThunderAtOncePlugin.ini
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404ae0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, 0x10
jb 0x4068c4
mov eax, dword [eax + 4]
jmp 0x4068c7
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 0x4068ee
mov eax, dword [esp + 0x24]
push eax
call fcn.004186e7
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 0x4068a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4