Function at 0x413650
Capabilities:
Create directory
Hide graphical window
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4688ae
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x50c], eax
push ebx
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x51c], 0
ja 0x413798
jb 0x4136ab
cmp dword [edi + 0x518], 0x500000
ja 0x413798
lea eax, [esp + 0x34]
push 0xf
push eax
call fcn.00424560
lea ecx, [esp + 0x20]
push 0x19
push ecx
mov dword [esp + 0x538], 0
call fcn.00424560
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ebx, 8
mov byte [esp + 0x528], 1
push 0x65
cmp dword [esp + 0x50], ebx
jae 0x4136ee
lea eax, [esp + 0x3c]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x9c], esp
push 0xffffffffffffffff
push eax
call fcn.00425a4e
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x5b0], 2
cmp dword [esp + 0xb8], ebx
jae 0x413724
lea eax, [esp + 0xa4]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x11c], esp
push 0xffffffffffffffff
push eax
call fcn.00425a4e
mov edx, dword [edi + 4]
push edx
mov byte [esp + 0x638], 1
call fcn.004012f0
add esp, 0x110
cmp dword [esp + 0x30], ebx
jb 0x413765
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044fc16
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
cmp dword [esp + 0x4c], ebx
jb 0x413cfd
mov edx, dword [esp + 0x38]
push edx
call fcn.0044fc16
add esp, 4
jmp 0x413cfd
mov ecx, dword [edi + 0x4e8]
call fcn.0042c500
test al, al
je 0x4137bf
cmp byte [0x488fc1], 1
jne 0x4137bf
push 0x400
call fcn.00416100
mov byte [0x488fc0], al
cmp dword [edi + 0x50c], 0
jne 0x4138e4
cmp dword [0x486e68], 0
mov eax, 1
mov dword [0x486b18], eax
mov dword [0x486b1c], eax
mov dword [0x486b24], eax
jne 0x413862
push 0x208
lea eax, [esp + 0x318]
push 0
push eax
call fcn.0044fe60
add esp, 0xc
push 0x208
lea ecx, [esp + 0x318]
push ecx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.ADSafe
lea edx, [esp + 0x318]
push edx
mov eax, edx
push 0x46c8b4
push eax
call fcn.00401040
lea eax, [esp + 0x324]
add esp, 0x10
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413840
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x318]
push ecx
mov ecx, 0x486e54
call fcn.00403680
mov eax, dword [0x486e58]
mov ebx, 8
cmp dword [0x486e6c], ebx
jae 0x413879
mov eax, 0x486e58
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4138b8
mov esi, dword [0x486e58]
cmp dword [0x486e6c], ebx
jae 0x413899
mov esi, 0x486e58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str..MainWnd.cpp
push 0x138
push str.Line_no_d_source_s_create_directory___s__failed_error_d._r_n
call fcn.0040cfa0
add esp, 0x14
mov edx, dword [edi + 4]
push 0x10010
push 0x1f4
push edx
call dword [sym.imp.USER32.dll_AnimateWindow]
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.004127f0
jmp 0x413cfd
mov ecx, dword [edi + 0x4d8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x88]
push eax
call edx
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x534], 3
call fcn.0044fe60
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.PROGRAMFILES
call esi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.00425a92
test al, al
jne 0x413a69
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.0044fe60
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.WINDIR
call esi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.00425a92
test al, al
jne 0x413a69
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.0044fe60
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.SYSTEMDRIVE
call esi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.00425a92
test al, al
jne 0x413a69
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.0044fe60
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.HOMEPATH
call esi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.00425a92
test al, al
jne 0x413a69
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.0044fe60
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.COMMONPROGRAMFILES
call esi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.00425a92
test al, al
je 0x413b1f
lea eax, [esp + 0x18]
push 0xf
push eax
call fcn.00424560
lea ecx, [esp + 0x3c]
push 0x10
push ecx
mov byte [esp + 0x538], 4
call fcn.00424560
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov ebx, 8
mov byte [esp + 0x528], 5
push 0x65
cmp dword [esp + 0x34], ebx
jae 0x413aa9
lea eax, [esp + 0x20]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push eax
call fcn.00425a4e
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x5b0], 6
cmp dword [esp + 0xd4], ebx
jae 0x413adf
lea eax, [esp + 0xc0]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x120], esp
push 0xffffffffffffffff
push eax
call fcn.00425a4e
mov edx, dword [edi + 4]
push edx
mov byte [esp + 0x638], 5
call fcn.004012f0
add esp, 0x110
lea ecx, [esp + 0x34]
call fcn.004021f0
lea ecx, [esp + 0x18]
jmp 0x413ce1
push 0
push 0x2f
lea ecx, [esp + 0x90]
call fcn.004258eb
test eax, eax
jge 0x413c2f
lea ecx, [esp + 0x88]
call fcn.004256f1
dec eax
push eax
lea ecx, [esp + 0x8c]
call fcn.00425830
mov ecx, 0x5c
cmp cx, ax
je 0x413c2f
lea ecx, [esp + 0x88]
call fcn.004256ab
push eax
call fcn.00423b90
add esp, 4
test eax, eax
je 0x413c2f
lea ecx, [esp + 0x88]
call fcn.004256ab
push eax
mov ecx, 0x486e54
call fcn.00404470
push 0x208
lea edx, [esp + 0x318]
push 0
push edx
call fcn.0044fe60
mov eax, dword [0x486e58]
add esp, 0xc
cmp dword [0x486e6c], 8
jae 0x413bbd
mov eax, 0x486e58
push eax
lea eax, [esp + 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x312], 0x5c
lea eax, [esp + eax*2 + 0x312]
jne 0x413bf1
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x314]
push eax
mov ecx, 0x486e54
call fcn.00404470
mov ecx, dword [edi + 4]
push 0x10010
push 0x1f4
push ecx
call dword [sym.imp.USER32.dll_AnimateWindow]
mov edx, dword [edi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.004127f0
jmp 0x413ce6
lea eax, [esp + 0x6c]
push 0xf
push eax
call fcn.00424560
lea ecx, [esp + 0x58]
push 0x11
push ecx
mov byte [esp + 0x538], 7
call fcn.00424560
add esp, 0x10
mov eax, dword [esp + 0x70]
mov ebx, 8
mov byte [esp + 0x528], bl
push 0x65
cmp dword [esp + 0x88], ebx
jae 0x413c71
lea eax, [esp + 0x74]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push eax
call fcn.00425a4e
mov eax, dword [esp + 0xdc]
mov byte [esp + 0x5b0], 9
cmp dword [esp + 0xf0], ebx
jae 0x413ca7
lea eax, [esp + 0xdc]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x120], esp
push 0xffffffffffffffff
push eax
call fcn.00425a4e
mov edx, dword [edi + 4]
push edx
mov byte [esp + 0x638], bl
call fcn.004012f0
add esp, 0x110
lea ecx, [esp + 0x50]
call fcn.004021f0
lea ecx, [esp + 0x6c]
call fcn.004021f0
lea ecx, [esp + 0x88]
mov dword [esp + 0x528], 0xffffffff
call fcn.004256e0
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x51c
ret