Function at 0x4151d4
Capabilities:
Set current directory

Disassembly:
push ebp
sub esp, 0x54
push 0x38
mov eax, 0x42dc15
call fcn.0042a7e8
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.pcoshelper.dll_Ordinal_727]
mov ebx, 0x4329c8
mov esi, 0x445f90
je 0x415230
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.pcoshelper.dll_Ordinal_1313]
call fcn.004136e3
lea ecx, [ebp + 0x38]
call dword [0x431488]
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.pcoshelper.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 0x415278
mov ecx, str._runhiddenScan
xor eax, eax
push eax
push eax
push ecx
push dword [ebp + 0x68]
push 0x436b3c
push eax
call dword [sym.imp.pcoshelper.dll_Ordinal_1133]
add esp, 0x18
cmp eax, 0x20
jge 0x4152c8
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 0x4152fd
cmp dword [ebp + 0x64], 0x10
je 0x4152f1
cmp dword [ebp + 0x64], 0x17
jne 0x415307
mov eax, dword [ebp + 0x60]
mov byte [eax + 0x850], 1
jmp 0x415307
mov eax, dword [ebp + 0x60]
mov byte [eax + 0x852], 1
jmp 0x415307
mov eax, dword [ebp + 0x60]
mov byte [eax + 0x851], 1
lea ecx, [ebp + 0x4c]
call dword [0x431488]
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 [0x4314a8]
call fcn.004194c1
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x3c], eax
call dword [0x431488]
mov ecx, dword [ebp + 0x60]
add ecx, 0x7a0
mov byte [ebp - 4], 5
je 0x415387
cmp dword [ecx + 0x20], 0
je 0x415387
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 0x415387
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 0x41548b
mov ecx, dword [ebp + 0x70]
cmp dword [ecx], eax
je 0x41548b
mov dword [ecx], eax
lea ecx, [ebp + 0x40]
call dword [0x431488]
mov eax, dword [ebp + 0x70]
mov byte [ebp - 4], 6
cmp dword [eax], 1
push ebx
mov ecx, esi
jne 0x4153cd
push str.IDS_PROBLEM
lea eax, [ebp + 4]
push eax
call edi
mov byte [ebp - 4], 7
or dword [ebp + 0x54], 1
jmp 0x4153e3
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 0x415431
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 0x41544b
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 0x415463
cmp dword [0x4461a8], 1
je 0x415463
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 0x415625
cmp dword [0x4461a8], 1
je 0x4155cb
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x44], SysStringLen
call dword [sym.imp.pcoshelper.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.pcoshelper.dll_Ordinal_932]
test eax, eax
je 0x41554b
push str.DATABASE_STATUS
lea ecx, [ebp - 0x28]
call dword [sym.imp.pcoshelper.dll_Ordinal_1187]
test eax, eax
je 0x4154ff
push 0x4461a8
push str.DATABASE_STATUS
lea ecx, [ebp - 0x28]
call dword [sym.imp.pcoshelper.dll_Ordinal_984]
jmp 0x415542
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.pcoshelper.dll_Ordinal_284]
mov eax, dword [0x4461a8]
test eax, eax
jne 0x41557f
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 0x4155a8
cmp eax, 1
je 0x4155be
cmp eax, 2
jne 0x4155be
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.pcoshelper.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 [0x4314a8]
mov ecx, esi
call dword [sym.imp.pcoshelper.dll_Ordinal_671]
mov ecx, dword [ebp + 0x60]
mov byte [ecx + 0x851], al
test al, al
je 0x415699
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 0x4156b3
mov eax, dword [ebp + 0x60]
mov al, byte [eax + 0xb48]
test al, al
je 0x415318
jmp 0x4156b3
cmp dword [ebp + 0x64], 0x10
je 0x415663
cmp dword [ebp + 0x64], 0x17
jne 0x4155f8
push 0
push 0
push ecx
lea eax, [ebp + 0x68]
mov ecx, esp
mov dword [ebp + 0x50], esp
push eax
call dword [0x4314a8]
mov ecx, esi
call dword [sym.imp.pcoshelper.dll_Ordinal_671]
mov ecx, dword [ebp + 0x60]
mov byte [ecx + 0x850], al
test al, al
jne 0x4155f8
mov byte [ecx + 0x853], 1
jmp 0x4156a2
push 0
push 0
push ecx
lea eax, [ebp + 0x68]
mov ecx, esp
mov dword [ebp + 0x50], esp
push eax
call dword [0x4314a8]
mov ecx, esi
call dword [sym.imp.pcoshelper.dll_Ordinal_671]
mov ecx, dword [ebp + 0x60]
mov byte [ecx + 0x852], al
test al, al
jne 0x4155f8
mov byte [ecx + 0x855], 1
jmp 0x4156a2
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 0x41572e
cmp dword [0x4461a8], 2
jne 0x41572e
cmp dword [ebp + 0x64], 4
jne 0x41572e
push ecx
lea eax, [ebp + 0x68]
mov ecx, esp
mov dword [ebp + 0x7c], esp
push eax
call dword [0x4314a8]
mov ecx, esi
call dword [sym.imp.pcoshelper.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 [0x4314a8]
call fcn.004195ad
cmp byte [ebp + 0x7f], 0
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
je 0x415774
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 0x415896
test eax, eax
jle 0x415875
lea ecx, [ebp + 0x34]
call dword [0x431488]
mov eax, dword [ebp + 0x70]
mov byte [ebp - 4], 0x10
cmp dword [eax], 1
push ebx
mov ecx, esi
jne 0x4157a9
push str.IDS_PROBLEM
lea eax, [ebp + 0x20]
push eax
call edi
mov byte [ebp - 4], 0x11
or dword [ebp + 0x54], 4
jmp 0x4157bf
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 0x41580d
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 0x415823
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 0x415866
cmp dword [edi + 0x20], ebx
je 0x415866
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 0x4158ad
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.pcoshelper.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.pcoshelper.dll_Ordinal_932]
test eax, eax
je 0x415904
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.pcoshelper.dll_Ordinal_1215]
lea ecx, [ebp - 0x44]
call dword [sym.imp.pcoshelper.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.pcoshelper.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 0x415296