Function at 0x41d9a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576975
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x554
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebx + 0xf834]
mov dword [ebp - 0x20], esi
cmp esi, dword [eax + 0x1c]
jge 0x41d9ed
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x41d9ed
inc esi
jmp 0x41d9cf
mov edx, dword [ebx + 0xf834]
cmp esi, dword [edx + 0x1c]
jne 0x41da0d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx + 0xf830]
mov ecx, 0x1c
xor eax, eax
push 0x24
rep stosd dword es:[edi], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0xf830]
add esp, 4
mov dword [ecx], eax
mov edx, dword [ebx + 0xf834]
mov ecx, dword [ebx + 0xf830]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + esi*4]
mov dword [ecx + 4], edx
mov edi, dword [ebx + 0xf830]
xor ecx, ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
cmp al, 2
sete cl
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xf830]
mov edi, dword [ebp + 8]
mov edx, dword [eax + 8]
neg edx
sbb edx, edx
and edx, 0xfffffffa
add edx, 6
mov dword [eax + 0x90], edx
mov eax, dword [ebx + 0xf830]
mov dword [eax + 0x5c], 0xffffffff
xor eax, eax
cmp edi, eax
je 0x41da8d
mov dword [0x5f386c], eax
cmp eax, dword [ebx + 0x174]
jge 0x41db06
mov ecx, dword [ebx + 0xf834]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + esi*4]
mov esi, dword [ebx + 0x170]
mov edx, dword [ecx + 0x30]
lea ecx, [eax + eax*8]
shl ecx, 3
sub ecx, eax
lea ecx, [esi + ecx*8]
cmp edx, dword [ecx + 0x224]
jne 0x41db43
mov edx, dword [ebx + 0x3540]
add ecx, 0x110
add edx, 0x5b0e
push edx
push ecx
call fcn.0043c220
mov eax, dword [ebx + 0x3540]
mov ecx, dword [ebx + 0xf830]
add esp, 8
add eax, 0x5b0e
add ecx, 0x94
push 0x104
push eax
push ecx
call fcn.0043bab0
mov esi, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebx + 0xf830]
mov eax, dword [edx + 8]
test eax, eax
je 0x41de0d
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_5
mov edx, dword [ebx + 0xf830]
mov byte [ebp - 4], 2
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41db4c
mov eax, ecx
jmp 0x41db4f
mov esi, dword [ebp - 0x20]
inc eax
jmp 0x41da8d
mov eax, dword [eax + 0x10]
push eax
add edx, 0x94
lea eax, [ebp - 0x168]
push edx
push eax
call fcn.0043c340
add esp, 0xc
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [ebp - 0x24]
push 0
push edx
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CFileFind::FindFile
xor edi, edi
test eax, eax
je 0x41dba5
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov eax, dword [ebp - 0x64]
push 0x10
lea ecx, [ebp - 0x64]
call dword [eax + 0x40]
test eax, eax
je 0x41dba5
mov edi, 1
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CFileFind::Close
test edi, edi
jne 0x41dbd6
mov eax, dword [ebx + 0xf830]
push 0x104
lea ecx, [eax + 0x94]
add eax, 0x198
push ecx
push eax
call fcn.0043bab0
add esp, 0xc
jmp 0x41ddef
mov edx, dword [ebx + 0xf830]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41dbea
mov eax, ecx
jmp 0x41dbed
mov eax, dword [eax + 0x10]
push ebx
push str.All_Files__._.
push 0x80006
push eax
push 0
push 0
lea ecx, [ebp - 0x364]
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
lea ecx, [ebp - 0x364]
sbb eax, eax
and eax, 0xc
add eax, 0x4c
mov dword [ebp - 0x304], eax
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x41ddd1
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x364]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.004e09b0
add esp, 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea edx, [ebp + 8]
lea ecx, [ebp - 0x364]
push edx
call sub.MFC42.DLL_CFileDialog::GetPathName
mov ecx, dword [ebx + 0x3540]
mov eax, dword [eax]
add ecx, 0x5b0e
mov byte [ebp - 4], 7
push ecx
push eax
call fcn.0043c220
add esp, 8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebx + 0x3540]
mov eax, dword [ebx + 0xf830]
add edx, 0x5b0e
push 0x104
add eax, 0x94
push edx
push eax
call fcn.0043bab0
mov eax, dword [ebx + 0xf830]
add esp, 0xc
lea ecx, [eax + 0x94]
push 0x104
add eax, 0x198
push ecx
push eax
call fcn.0043bab0
add esp, 0xc
xor ecx, ecx
cmp ecx, dword [ebx + 0x174]
jge 0x41ddc5
mov edx, dword [ebx + 0xf834]
mov edi, dword [ebx + 0x170]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + esi*4]
lea eax, [ecx + ecx*8]
shl eax, 3
mov edx, dword [edx + 0x30]
sub eax, ecx
shl eax, 3
mov dword [ebp + 8], eax
cmp edx, dword [eax + edi + 0x224]
jne 0x41de07
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x364]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
mov ecx, dword [ebx + 0x170]
mov edx, dword [ebp + 8]
mov edi, dword [eax]
xor eax, eax
lea edx, [edx + ecx + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebx + 0x170]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
xor eax, eax
lea edx, [edx + ecx + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xf834]
mov edi, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41ddb8
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x41e2ab
inc ecx
jmp 0x41dce6
test edi, edi
jne 0x41e2b0
mov eax, dword [0x5f386c]
test eax, eax
jne 0x41e2b0
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_5
mov edx, dword [ebx + 0xf830]
mov byte [ebp - 4], 0xa
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41de4e
mov eax, ecx
jmp 0x41de51
mov eax, dword [eax + 0x10]
add edx, 0x94
push eax
lea ecx, [ebp - 0x26c]
push edx
push ecx
call fcn.0043c340
add esp, 0xc
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp - 0x1c]
push 0
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::FindFile
xor edi, edi
test eax, eax
je 0x41dea7
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [ebp - 0x48]
push 0x10
lea ecx, [ebp - 0x48]
call dword [edx + 0x40]
test eax, eax
jne 0x41dea7
mov edi, 1
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::Close
test edi, edi
je 0x41e298
mov ecx, ebx
call fcn.00433340
test eax, eax
jne 0x41e28e
push ebx
lea ecx, [ebp - 0x108]
call fcn.004d1f10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push 0x5e21f4
push ecx
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_operator_2
push 0x5e21d4
lea edx, [ebp + 8]
push eax
push edx
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.00572d3c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x108]
call sub.MFC42.DLL_CDialog::DoModal
mov edi, eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xe
call fcn.00572e0e
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CDialog::CDialog
cmp edi, 7
jne 0x41e223
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [ebx + 0xf830]
mov byte [ebp - 4], 0x10
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41df80
mov eax, ecx
jmp 0x41df83
mov eax, dword [eax + 0x10]
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.004e0aa0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.00572d3c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x14]
push 0x5f3788
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ecx, dword [ebp - 0x14]
add esp, 8
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0xf830]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x41dfd8
mov ecx, edx
jmp 0x41dfdb
mov ecx, dword [ecx + 0x10]
push ebx
push str.All_Files__._.
push 0x80006
push ecx
push eax
push 0
lea ecx, [ebp - 0x560]
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
lea ecx, [ebp - 0x560]
sbb eax, eax
and eax, 0xc
add eax, 0x4c
mov dword [ebp - 0x500], eax
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x41e1c6
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x560]
push edx
call sub.MFC42.DLL_CFileDialog::GetPathName
mov eax, dword [eax]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004e09b0
add esp, 8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x560]
call sub.MFC42.DLL_CFileDialog::GetPathName
mov edx, dword [ebx + 0x3540]
mov eax, dword [eax]
add edx, 0x5b0e
mov byte [ebp - 4], 0x16
push edx
push eax
call fcn.0043c220
add esp, 8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x3540]
mov ecx, dword [ebx + 0xf830]
add eax, 0x5b0e
push 0x104
add ecx, 0x94
push eax
push ecx
call fcn.0043bab0
mov eax, dword [ebx + 0xf830]
add esp, 0xc
lea edx, [eax + 0x94]
push 0x104
add eax, 0x198
push edx
push eax
call fcn.0043bab0
add esp, 0xc
xor ecx, ecx
cmp ecx, dword [ebx + 0x174]
jge 0x41e1b2
mov eax, dword [ebx + 0xf834]
mov edi, dword [ebx + 0x170]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + esi*4]
mov edx, dword [eax + 0x30]
lea eax, [ecx + ecx*8]
shl eax, 3
sub eax, ecx
shl eax, 3
mov dword [ebp + 8], eax
cmp edx, dword [eax + edi + 0x224]
jne 0x41e1c0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x560]
call sub.MFC42.DLL_CFileDialog::GetPathName
mov edi, dword [eax]
mov edx, dword [ebx + 0x170]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lea edx, [eax + edx + 0x110]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebx + 0x170]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
xor eax, eax
lea edx, [edx + ecx + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xf834]
mov edi, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41e1a5
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
jmp 0x41e1f7
inc ecx
jmp 0x41e0d3
mov eax, dword [ebx + 0xf830]
test eax, eax
je 0x41e1f7
cmp dword [eax], 0
je 0x41e1f7
mov eax, dword [eax + 0x60]
test eax, eax
je 0x41e1e3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebx + 0xf830]
cmp dword [ecx], 0
je 0x41e1f7
push 1
mov ecx, ebx
call fcn.004208a0
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x560]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
jmp 0x41e298
cmp edi, 2
jne 0x41e289
mov eax, dword [ebx + 0xf830]
test eax, eax
je 0x41e259
cmp dword [eax], 0
je 0x41e259
mov eax, dword [eax + 0x60]
test eax, eax
je 0x41e245
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebx + 0xf830]
cmp dword [edx], 0
je 0x41e259
push 1
mov ecx, ebx
call fcn.004208a0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00572f64
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, 4
jne 0x41e298
mov dword [0x5f386c], 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00572f64
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [ebx + 0xf830]
mov byte [ebp - 4], 0x18
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41e2d0
mov eax, ecx
jmp 0x41e2d3
mov eax, dword [eax + 0x10]
push eax
lea ecx, [ebp - 0x28]
push 0x5e21c4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [ebp - 0x28]
mov ecx, esp
mov dword [ebp + 8], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push 0
mov ecx, ebx
call fcn.00425860
mov ecx, ebx
call fcn.0041e3a0
test eax, eax
jne 0x41e328
mov eax, dword [ebx + 0xf830]
mov eax, dword [eax]
test eax, eax
je 0x41e328
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebx + 0xf830]
add esp, 4
mov dword [ecx], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
jmp 0x41e271