Function at 0x4014c0
Capabilities:
Create directory
Get graphical window text

Disassembly:
sub esp, 0xc34
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x6f2878
call fcn.00455eb0
mov ecx, 0x6f2878
call fcn.00456050
mov ax, word [0x500df0]
mov ecx, 0x81
mov word [esp + 0x420], ax
xor eax, eax
lea edi, [esp + 0x422]
lea esi, [ebp + 0x6e0]
rep stosd dword es:[edi], eax
mov ecx, esi
stosw word es:[edi], ax
call fcn.004d2cf0
test eax, eax
jne 0x401516
mov eax, dword [ebp + 0xd58]
push eax
mov ecx, esi
call fcn.004d2af0
test eax, eax
je 0x401923
mov edx, dword [eax]
lea ecx, [esp + 0x420]
push 0x104
push ecx
push edx
lea ecx, [ebp + 0x710]
call fcn.004b0330
test eax, eax
je 0x401923
push ebx
mov bx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov esi, dword [ebp + 0xdb8]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esi + 4]
test edi, edi
je 0x401665
mov ecx, dword [esi + 8]
mov eax, 0xdfac1f75
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jne 0x401665
mov ecx, 0x412
xor eax, eax
add edi, 0x208
push 0x823
rep stosd dword es:[edi], eax
mov edi, dword [esi + 4]
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add eax, 0x208
push eax
push 0x3f2
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
call ebx
mov eax, dword [esi + 4]
mov edx, dword [ebp + 4]
push 0x103
push eax
push 0x413
push edx
call edi
push eax
call ebx
mov eax, dword [esi + 4]
push 1
push 0x80
push eax
call fcn.004b11d0
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
lea edx, [esp + 0x424]
lea eax, [esp + 0x14]
push ecx
push edx
push 0x4ed13c
push 0x103
push eax
call ebx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x28]
add ecx, 0x208
push ecx
push edx
call fcn.00434650
mov esi, dword [esi + 4]
add esp, 0x1c
add esi, 0x208
lea eax, [esp + 0x14]
push 0
push 0
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0
call fcn.00438e50
add esp, 0x14
jmp 0x401880
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa3e]
mov word [esp + 0xa3c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x836]
mov word [esp + 0x834], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp + 4]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62e]
mov word [esp + 0x62c], bx
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa40]
push ecx
push 0x413
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0xa3c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x401718
lea ecx, [esp + 0xa3c]
lea edx, [esp + 0x424]
push ecx
push edx
push 0x4ed130
lea eax, [esp + 0x840]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x40173b
lea ecx, [esp + 0x424]
lea edx, [esp + 0x834]
push ecx
push 0x4ed128
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
xor ebx, ebx
lea eax, [esp + 0x834]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [esp + 0x10], ebx
mov edi, dword [esi + 4]
test edi, edi
je 0x40187a
mov ecx, dword [esi + 8]
mov eax, 0xdfac1f75
sub ecx, edi
imul ecx
add edx, ecx
mov eax, dword [esp + 0x10]
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jae 0x40187a
lea edx, [ebx + edi]
mov edi, dword [sym.imp.MSVCRT.dll_wcspbrk]
push 0x4ed114
push edx
call edi
add esp, 8
test eax, eax
je 0x4017b0
mov word [eax], 0x2d
mov eax, dword [esi + 4]
add eax, ebx
push 0x4ed114
push eax
call edi
add esp, 8
test eax, eax
jne 0x401797
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x14]
push 1
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x630]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
push 0x80
push ecx
call fcn.004b11d0
mov eax, dword [esi + 4]
mov edx, ebx
add esp, 0xc
add edx, eax
lea eax, [esp + 0x834]
lea ecx, [esp + 0x14]
push edx
push eax
push 0x4ed13c
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea edx, [esp + 0x62c]
lea eax, [esp + 0x14]
mov ecx, ebp
push 0x104
push edx
push eax
call fcn.00402870
test eax, eax
je 0x401866
mov ecx, dword [esi + 4]
lea eax, [esp + 0x62c]
lea edx, [ebx + ecx + 0x208]
push edx
push eax
call fcn.00434650
mov eax, dword [esi + 4]
add esp, 8
lea edx, [esp + 0x62c]
push 0
lea ecx, [ebx + eax + 0x208]
push 0
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0
call fcn.00438e50
add esp, 0x14
mov ecx, dword [esp + 0x10]
inc ecx
add ebx, 0x1250
mov dword [esp + 0x10], ecx
jmp 0x401750
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ax, word [0x500df0]
mov ecx, 0x81
mov word [esp + 0x21c], ax
xor eax, eax
lea edi, [esp + 0x21e]
push 0x720358
rep stosd dword es:[edi], eax
push 0x4ed128
lea ecx, [esp + 0x224]
xor esi, esi
push 0x103
push ecx
mov dword [0x7207bc], esi
stosw word es:[edi], ax
call ebx
add esp, 0x10
lea edx, [esp + 0x21c]
mov ecx, 0x6f2878
push 6
push 1
push edx
call fcn.0044db30
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x21c]
push 0x7205a0
rep stosd dword es:[edi], eax
push 0x4ed128
lea eax, [esp + 0x224]
push 0x103
push eax
mov dword [0x7207c0], esi
call ebx
add esp, 0x10
lea ecx, [esp + 0x21c]
push 6
push 1
push ecx
mov ecx, 0x6f2878
call fcn.00456350
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc34
ret