Function at 0x476a10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce22
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x25c], 0
call sub.mfc140u.dll_CDialog::OnInitDialog
movsd xmm0, qword [0x51b110]
mulsd xmm0, qword [0x4da6c8]
call fcn.004b63f1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
push eax
push 0
push 0x153
push dword [edi + 0x678]
call esi
lea ebx, [edi + 0x100]
mov edi, 0xa
mov dword [ebp - 0x25c], ebx
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [ebx]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
movsd xmm0, qword [0x51b110]
lea ecx, [ebx - 0x20]
mulsd xmm0, qword [0x4da6c8]
push 0x26
cvttsd2si eax, xmm0
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 0
call sub.mfc140u.dll_CWnd::SetWindowPos
movsd xmm0, qword [0x51b110]
mulsd xmm0, qword [0x4db4e0]
call fcn.004b63f1
movzx eax, ax
push eax
push 0
push 0x153
push dword [ebx]
call esi
lea ebx, [ebx + 0x88]
sub edi, 1
jne 0x476a94
mov eax, dword [0x58cfd8]
mov esi, dword [eax + 0x894]
push esi
call fcn.00473090
push eax
call fcn.00466030
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0048ca20
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x260]
push 0x58cfe8
push 0x4f7928
lea eax, [edi + 0xdc]
push eax
mov dword [ebp - 0x258], eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
push str.InkChannels
push esi
call fcn.0046f820
add esp, 0x24
mov dword [edi + 0xa8], eax
lea ebx, [edi + 0x100]
cmp eax, 0xa
jge 0x476bb9
imul ecx, eax, 0x88
lea esi, [edi + 0xe0]
lea edi, [edi + eax*4]
mov ebx, 0xa
add edi, 0x630
add esi, ecx
sub ebx, eax
nop dword [eax]
push 0
mov ecx, esi
mov dword [edi], 7
call sub.mfc140u.dll_CWnd::EnableWindow
add esi, 0x88
lea edi, [edi + 4]
sub ebx, 1
jne 0x476b90
mov ebx, dword [ebp - 0x25c]
mov edi, dword [ebp - 0x260]
push 0
push dword [edi + 0xdc]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
je 0x476bdd
push dword [edi + 0xdc]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov ecx, dword [ebp - 0x264]
mov esi, eax
push 1
push 0x4d7b2c
lea eax, [ebp - 0x254]
mov dword [ebp - 0x25c], 1
push dword [ecx - 0xc]
push ecx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [edi + 0xdc]
push esi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_1]
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
push dword [edi + 0xdc]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
je 0x476c64
push dword [edi + 0xdc]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
lea esi, [edi + 0x630]
mov edi, 0xa
nop
push 0
push dword [esi]
push 0x14e
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [esi + 4]
lea ebx, [ebx + 0x88]
sub edi, 1
jne 0x476c70
mov esi, dword [ebp - 0x258]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi]
push 5
push 0x4d9c98
mov dword [ebp - 0x25c], 2
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x254]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindfirst64i32]
add esp, 8
lea ecx, [ebp - 0x254]
mov esi, eax
mov dword [ebp - 0x268], esi
push 0xffffffffffffffff
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov edi, dword [ebp - 0x260]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, 0xffffffff
je 0x476d8c
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476d22
sub ecx, edx
xor eax, eax
sar ecx, 1
mov word [ebp + ecx*2 - 0x234], ax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__19]
push dword [ebp - 0x258]
push 0
push 0x143
push dword [edi + 0x678]
call ebx
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindnext64i32]
add esp, 8
lea ecx, [ebp - 0x258]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
mov esi, dword [ebp - 0x268]
je 0x476d14
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [edi + 0x6d8]
push 0xffffffffffffffff
push 0x14c
push dword [edi + 0x678]
call ebx
xor ecx, ecx
test eax, eax
push ecx
cmovs eax, ecx
push eax
push 0x14e
push dword [edi + 0x678]
call ebx
push 0
push 0
push 0x146
push dword [edi + 0x678]
call ebx
test eax, eax
jle 0x476ded
mov ecx, edi
call fcn.00476890
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b61c2
mov esp, ebp
pop ebp
ret