Function at 0x405fe0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470dfe
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041d222
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push eax
xor ebx, ebx
push ebx
push 0x80
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call fcn.004505f0
add esp, 4
lea edi, [esi + 0x24c]
push eax
mov ecx, edi
mov dword [esp + 0x44], ebx
call fcn.004037c0
or ebp, 0xffffffff
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x47a660
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.0040c5e0
add esp, 0xc
lea edi, [esi + 0x250]
push eax
mov ecx, edi
mov dword [esp + 0x44], 1
call fcn.004037c0
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4060cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov ebp, esp
push eax
call fcn.00403750
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00450740
add esp, 4
cmp eax, ebx
jne 0x4060fd
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x14
mov dword [0x4a120c], ebx
call fcn.0041143a
mov ebp, eax
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x40], 2
cmp ebp, ebx
je 0x406149
mov edi, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push ecx
sub edi, 0x10
mov dword [esp + 0x2c], esp
mov ebx, esp
push edi
call fcn.00403750
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [ebx], eax
call fcn.00451ac0
xor ebx, ebx
jmp 0x40614b
xor eax, eax
mov dword [esp + 0x40], 0xffffffff
mov dword [0x4a120c], eax
cmp dword [esp + 0x18], ebx
je 0x40617a
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.AppLog
call fcn.00404890
mov ecx, dword [0x4a120c]
call fcn.00451640
mov edx, dword [esi + 0x2f4]
push ebx
push ebx
push 0x14b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [esi + 0x2ac]
mov dword [esi + 0x284], ebx
mov dword [esi + 0x2a8], ebx
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c8], ebx
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2d0], ebx
mov ebp, dword [edi + 0x10]
cmp dword [edi + 0xc], ebp
jbe 0x4061c5
call fcn.00430a7b
mov ebx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x2c], eax
cmp ebx, dword [edi + 0x10]
jbe 0x4061d8
call fcn.00430a7b
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
push ebp
push ecx
push ebx
push eax
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.0040d690
mov ecx, esi
call fcn.004066c0
test eax, eax
je 0x406457
push 0x7c
call fcn.0041143a
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 3
test eax, eax
je 0x40623a
mov edx, dword [0x4a120c]
lea ecx, [esp + 0x18]
push ecx
push edx
lea ecx, [esi + 0x288]
push ecx
lea edx, [esi + 0x25c]
push edx
mov ecx, eax
call fcn.00454370
jmp 0x40623c
xor eax, eax
or ebp, 0xffffffff
mov dword [esp + 0x40], ebp
cmp dword [esp + 0x18], 0
mov dword [esi + 0x284], eax
je 0x406299
movzx ecx, byte [esi + 0x2a0]
push ecx
mov ecx, eax
call fcn.00451e50
mov eax, dword [esi + 0x20]
mov ecx, 0x66
push ecx
mov ecx, dword [esi + 0x284]
push eax
call fcn.004542d0
mov ecx, dword [esi + 0x284]
call fcn.00453920
mov dword [esp + 0x18], eax
test eax, eax
je 0x4062ac
push esi
mov dword [esi + 0x2a8], 1
call fcn.00407a10
jmp 0x4062ac
push 0x10
push str.ERROR
push str.Loading_Multi_Language_failed_
mov ecx, esi
call fcn.00412dbf
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4062c6
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], 4
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4062f8
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x44], 5
call fcn.00415172
push str._v1.45
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0040c5e0
add esp, 0xc
mov byte [esp + 0x40], 6
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.004170e1
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x4a120c], 0
je 0x40640e
push 6
push str._v1.45
lea ecx, [esp + 0x28]
call fcn.004036a0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0040c520
add esp, 0xc
push str._start_run
push eax
lea ecx, [esp + 0x2c]
mov bl, 7
push ecx
mov byte [esp + 0x4c], bl
call fcn.0040c5e0
add esp, 0xc
mov byte [esp + 0x40], 8
mov eax, dword [eax]
mov edx, dword [0x4a120c]
push eax
push edx
call fcn.00451cb0
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40640e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40646d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40646d
push 0x10
push str.ERROR
push str.Loading_config_file_failed_
mov ecx, esi
call fcn.00412dbf
or ebp, 0xffffffff
mov edx, dword [esi + 0x148]
mov eax, dword [edx + 0x160]
lea edi, [esi + 0x148]
push 0xc
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x150]
push 1
mov ecx, edi
call eax
push 0x47a404
lea ecx, [esp + 0x24]
call fcn.00404890
mov dword [esp + 0x40], 9
mov edx, dword [edi]
mov edx, dword [edx + 0x14c]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi + 0x328]
mov eax, dword [edx + 0x160]
lea edi, [esi + 0x328]
push 0xa
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x150]
push 1
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x148]
push 0xff0000
mov ecx, edi
call eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.0040b9c0
mov dword [esp + 0x40], 0xa
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14c]
mov ecx, edi
call eax
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x406555
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x100]
lea edi, [esi + 0x78]
test eax, eax
je 0x40658f
cmp byte [edi + 0x8c], 0
je 0x406572
mov byte [edi + 0x8c], 0
mov ecx, dword [edi + 0x90]
mov edx, dword [eax + 0x2c]
add ecx, ecx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x88], 0
mov eax, dword [edi + 0x94]
cmp eax, 1
jl 0x4065a9
cmp eax, 2
jg 0x4065a9
mov dword [edi + 0x94], 1
mov dword [edi + 0x54], 0x14
call fcn.004013c0
mov dword [esi + 0x108], 0x64
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret