Function at 0x41507e
Capabilities:
Set current directory

Disassembly:
push ebp
sub esp, 0x54
push 0x38
mov eax, 0x42deed
call fcn.0042aac8
and dword [ebp + 0x54], 0
mov eax, dword [ebp + 0x70]
mov dword [ebp - 4], 1
and dword [eax], 0
cmp dword [ebp + 0x64], 4
mov edi, dword [sym.imp.aolhelper.dll_Ordinal_727]
mov ebx, 0x4329e8
mov esi, 0x445f90
je 0x4150da
push ebx
push str.IDS_ZERO_PRB_FOUND
lea eax, [ebp + 0x3c]
push eax
mov ecx, esi
call edi
mov ecx, dword [ebp + 0x74]
mov byte [ebp - 4], 2
push dword [eax]
call sub.mfc90u.dll_CWnd::SetWindowTextW
lea ecx, [ebp + 0x3c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp + 0x74]
mov eax, dword [sym.imp.aolhelper.dll_Ordinal_1313]
call fcn.004135ca
lea ecx, [ebp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [ebp - 4], 3
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [ebp + 0x38]
push ecx
push eax
call dword [sym.imp.aolhelper.dll_Ordinal_401]
pop ecx
pop ecx
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [ebp + 0x7c], 0
mov ecx, str._runhiddenscansec
jne 0x415122
mov ecx, str._runhiddenScan
xor eax, eax
push eax
push eax
push ecx
push dword [ebp + 0x68]
push 0x436b74
push eax
call dword [sym.imp.aolhelper.dll_Ordinal_1133]
add esp, 0x18
cmp eax, 0x20
jge 0x415172
xor esi, esi
lea ecx, [ebp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x68]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x6c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 0x20
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x64], 4
je 0x4151a7
cmp dword [ebp + 0x64], 0x10
je 0x41519b
cmp dword [ebp + 0x64], 0x17
jne 0x4151b1
mov eax, dword [ebp + 0x60]
mov byte [eax + 0x850], 1
jmp 0x4151b1
mov eax, dword [ebp + 0x60]
mov byte [eax + 0x852], 1
jmp 0x4151b1
mov eax, dword [ebp + 0x60]
mov byte [eax + 0x851], 1
lea ecx, [ebp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [ebp - 4], 4
mov byte [ebp + 0x7f], 0
push 0xab
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x4c]
push eax
push ecx
lea eax, [ebp + 0x6c]
mov ecx, esp
mov dword [ebp + 0x50], esp
push eax
call dword [0x431914]
call fcn.0041c8a9
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x3c], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov ecx, dword [ebp + 0x60]
add ecx, 0x7a0
mov byte [ebp - 4], 5
je 0x415231
cmp dword [ecx + 0x20], 0
je 0x415231
lea eax, [ebp + 0x48]
push eax
call sub.mfc90u.dll_CWnd::GetWindowTextW
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x415231
mov ecx, dword [ebp + 0x60]
push dword [ebp + 0x4c]
add ecx, 0x7a0
call sub.mfc90u.dll_CWnd::SetWindowTextW
mov eax, dword [ebp + 0x3c]
cmp eax, 0xffffffff
je 0x415335
mov ecx, dword [ebp + 0x70]
cmp dword [ecx], eax
je 0x415335
mov dword [ecx], eax
lea ecx, [ebp + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, dword [ebp + 0x70]
mov byte [ebp - 4], 6
cmp dword [eax], 1
push ebx
mov ecx, esi
jne 0x415277
push str.IDS_PROBLEM
lea eax, [ebp + 4]
push eax
call edi
mov byte [ebp - 4], 7
or dword [ebp + 0x54], 1
jmp 0x41528d
push str.IDS_PROBLEMS
lea eax, [ebp + 8]
push eax
call edi
mov dword [ebp - 4], 8
or dword [ebp + 0x54], 2
mov eax, dword [eax]
push ebx
mov dword [ebp + 0x44], eax
push str.IDS_PRB_FOUND
lea eax, [ebp + 0x24]
push eax
mov ecx, esi
call edi
mov ecx, dword [ebp + 0x70]
mov dword [ebp - 4], 9
push dword [ebp + 0x44]
mov eax, dword [eax]
push dword [ecx]
push eax
lea eax, [ebp + 0x40]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea ecx, [ebp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test byte [ebp + 0x54], 2
je 0x4152db
and dword [ebp + 0x54], 0xfffffffd
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [ebp - 4], 6
test byte [ebp + 0x54], 1
je 0x4152f5
and dword [ebp + 0x54], 0xfffffffe
lea ecx, [ebp + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [ebp + 0x64], 4
jne 0x41530d
cmp dword [0x4461a8], 1
je 0x41530d
lea ecx, [ebp + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push dword [ebp + 0x40]
mov ecx, dword [ebp + 0x74]
call sub.mfc90u.dll_CWnd::SetWindowTextW
mov eax, dword [ebp + 0x74]
push 1
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [ebp + 0x64], 4
jne 0x4154cf
cmp dword [0x4461a8], 1
je 0x415475
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x44], SysStringLen
call dword [sym.imp.aolhelper.dll_Ordinal_66]
push 1
mov byte [ebp - 4], 0xa
push dword [ebp + 0x6c]
lea ecx, [ebp - 0x28]
push SysReAllocString
mov dword [ebp - 0x24], 0x2001f
call dword [sym.imp.aolhelper.dll_Ordinal_932]
test eax, eax
je 0x4153f5
push str.DATABASE_STATUS
lea ecx, [ebp - 0x28]
call dword [sym.imp.aolhelper.dll_Ordinal_1187]
test eax, eax
je 0x4153a9
push 0x4461a8
push str.DATABASE_STATUS
lea ecx, [ebp - 0x28]
call dword [sym.imp.aolhelper.dll_Ordinal_984]
jmp 0x4153ec
push ebx
push str.IDS_CHECK_DEFINATON
lea eax, [ebp + 0x30]
push eax
mov ecx, esi
mov dword [0x4461a8], 0x63
call edi
mov ecx, dword [ebp + 0x74]
mov byte [ebp - 4], 0xb
push dword [eax]
call sub.mfc90u.dll_CWnd::SetWindowTextW
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 0x74]
push 1
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp - 0x28]
call dword [sym.imp.aolhelper.dll_Ordinal_284]
mov eax, dword [0x4461a8]
test eax, eax
jne 0x415429
mov eax, dword [ebp + 0x60]
push ebx
mov byte [eax + 0x854], 1
push str.IDS_DATABASELOAD_FAILED
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call edi
mov ecx, dword [ebp + 0x74]
mov byte [ebp - 4], 0xc
push dword [eax]
call sub.mfc90u.dll_CWnd::SetWindowTextW
lea ecx, [ebp + 0xc]
jmp 0x415452
cmp eax, 1
je 0x415468
cmp eax, 2
jne 0x415468
push ebx
push str.IDS_LOADING_DATABASE
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call edi
mov ecx, dword [ebp + 0x74]
mov byte [ebp - 4], 0xd
push dword [eax]
call sub.mfc90u.dll_CWnd::SetWindowTextW
lea ecx, [ebp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 0x74]
push 1
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call dword [sym.imp.aolhelper.dll_Ordinal_131]
push 0
push 0
push ecx
lea eax, [ebp + 0x68]
mov ecx, esp
mov dword [ebp + 0x50], esp
push eax
call dword [0x431914]
mov ecx, esi
call dword [sym.imp.aolhelper.dll_Ordinal_671]
mov ecx, dword [ebp + 0x60]
mov byte [ecx + 0x851], al
test al, al
je 0x415543
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [ebp + 0x3c], 0xffffffff
je 0x41555d
mov eax, dword [ebp + 0x60]
mov al, byte [eax + 0xb48]
test al, al
je 0x4151c2
jmp 0x41555d
cmp dword [ebp + 0x64], 0x10
je 0x41550d
cmp dword [ebp + 0x64], 0x17
jne 0x4154a2
push 0
push 0
push ecx
lea eax, [ebp + 0x68]
mov ecx, esp
mov dword [ebp + 0x50], esp
push eax
call dword [0x431914]
mov ecx, esi
call dword [sym.imp.aolhelper.dll_Ordinal_671]
mov ecx, dword [ebp + 0x60]
mov byte [ecx + 0x850], al
test al, al
jne 0x4154a2
mov byte [ecx + 0x853], 1
jmp 0x41554c
push 0
push 0
push ecx
lea eax, [ebp + 0x68]
mov ecx, esp
mov dword [ebp + 0x50], esp
push eax
call dword [0x431914]
mov ecx, esi
call dword [sym.imp.aolhelper.dll_Ordinal_671]
mov ecx, dword [ebp + 0x60]
mov byte [ecx + 0x852], al
test al, al
jne 0x4154a2
mov byte [ecx + 0x855], 1
jmp 0x41554c
mov eax, ecx
mov byte [eax + 0x854], 1
lea ecx, [ebp + 0x48]
mov byte [ebp + 0x7f], 1
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 0x60]
mov al, byte [eax + 0xb48]
test al, al
je 0x4155d8
cmp dword [0x4461a8], 2
jne 0x4155d8
cmp dword [ebp + 0x64], 4
jne 0x4155d8
push ecx
lea eax, [ebp + 0x68]
mov ecx, esp
mov dword [ebp + 0x7c], esp
push eax
call dword [0x431914]
mov ecx, esi
call dword [sym.imp.aolhelper.dll_Ordinal_713]
push ebx
push str.IDS_DATABASELOAD_FAILED
lea eax, [ebp]
push eax
mov ecx, esi
call edi
mov ecx, dword [ebp + 0x74]
mov byte [ebp - 4], 0xe
push dword [eax]
call sub.mfc90u.dll_CWnd::SetWindowTextW
lea ecx, [ebp]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 0x74]
push 1
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x60]
mov byte [ebp + 0x7f], 1
mov byte [eax + 0x854], 1
push ecx
lea eax, [ebp + 0x6c]
mov ecx, esp
mov dword [ebp + 0x60], esp
push eax
call dword [0x431914]
call fcn.00415c1a
cmp byte [ebp + 0x7f], 0
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
je 0x41561e
push ebx
push str.IDS_ERROR_OCCURED
lea eax, [ebp + 0x14]
push eax
mov ecx, esi
call edi
mov esi, dword [ebp + 0x74]
mov byte [ebp - 4], 0xf
push dword [eax]
mov ecx, esi
call sub.mfc90u.dll_CWnd::SetWindowTextW
lea ecx, [ebp + 0x14]
jmp 0x415740
test eax, eax
jle 0x41571f
lea ecx, [ebp + 0x34]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, dword [ebp + 0x70]
mov byte [ebp - 4], 0x10
cmp dword [eax], 1
push ebx
mov ecx, esi
jne 0x415653
push str.IDS_PROBLEM
lea eax, [ebp + 0x20]
push eax
call edi
mov byte [ebp - 4], 0x11
or dword [ebp + 0x54], 4
jmp 0x415669
push str.IDS_PROBLEMS
lea eax, [ebp + 0x28]
push eax
call edi
mov dword [ebp - 4], 0x12
or dword [ebp + 0x54], 8
mov eax, dword [eax]
push ebx
mov dword [ebp + 0x7c], eax
push str.IDS_PRB_FOUND
lea eax, [ebp + 0x2c]
push eax
mov ecx, esi
call edi
mov ecx, dword [ebp + 0x70]
mov dword [ebp - 4], 0x13
push dword [ebp + 0x7c]
mov eax, dword [eax]
push dword [ecx]
push eax
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea ecx, [ebp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test byte [ebp + 0x54], 8
je 0x4156b7
and dword [ebp + 0x54], 0xfffffff7
lea ecx, [ebp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [ebp - 4], 0x10
test byte [ebp + 0x54], 4
je 0x4156cd
lea ecx, [ebp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [ebp + 0x74]
push dword [ebp + 0x34]
mov ecx, esi
call sub.mfc90u.dll_CWnd::SetWindowTextW
push 1
xor ebx, ebx
push ebx
push dword [esi + 0x20]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
call esi
mov edi, dword [ebp + 0x78]
cmp edi, ebx
je 0x415710
cmp dword [edi + 0x20], ebx
je 0x415710
push 1
mov ecx, edi
call sub.mfc90u.dll_CWnd::EnableWindow
push 5
mov ecx, edi
call sub.mfc90u.dll_CWnd::ShowWindow
push 1
push ebx
push dword [edi + 0x20]
call esi
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x415757
push ebx
push str.IDS_NO_PRB_FOUND
lea eax, [ebp + 0x18]
push eax
mov ecx, esi
call edi
mov esi, dword [ebp + 0x74]
mov byte [ebp - 4], 0x14
push dword [eax]
mov ecx, esi
call sub.mfc90u.dll_CWnd::SetWindowTextW
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 1
push 0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [ebp + 0x10]
mov esi, SysReAllocString
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp + 0x10], esi
call dword [sym.imp.aolhelper.dll_Ordinal_66]
push 1
mov byte [ebp - 4], 0x15
push dword [0x446128]
lea ecx, [ebp - 0x44]
push esi
mov dword [ebp - 0x40], 0x2001f
call dword [sym.imp.aolhelper.dll_Ordinal_932]
test eax, eax
je 0x4157ae
mov eax, dword [ebp + 0x70]
mov eax, dword [eax]
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x68]
lea ecx, [ebp - 0x44]
call dword [sym.imp.aolhelper.dll_Ordinal_1215]
lea ecx, [ebp - 0x44]
call dword [sym.imp.aolhelper.dll_Ordinal_284]
mov eax, dword [ebp + 0x70]
mov esi, dword [eax]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call dword [sym.imp.aolhelper.dll_Ordinal_131]
lea ecx, [ebp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x415140