Function at 0x405406
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448bf0
push 0x44500e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x139c
call fcn.00444f70
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.SQLUNIRL.dll__GetUnicodeRedirectionLayer_0]
mov dword [0x454ae0], eax
push 0
mov eax, dword [0x454ae0]
call dword [eax + 0x224]
mov dword [0x4562a8], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
push 0x456278
push 0x4562a4
mov ecx, dword [0x4562a8]
push ecx
call dword [sym.imp.SQLRESLD.dll_SQLUILoadResourceDLL]
add esp, 0x10
test eax, eax
jne 0x40547f
xor eax, eax
jmp 0x405dd5
mov dword [ebp - 0x12c], 0
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x12c], 0x114
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.SQLUNIRL.dll__GetVersionEx_4]
xor eax, eax
cmp dword [ebp - 0x11c], 2
setne al
mov dword [0x456b2c], eax
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x21c
push 0
lea ecx, [ebp - 0x370]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x370]
push edx
push 0x104
mov eax, dword [0x454ae0]
call dword [eax + 0x1c0]
push 1
push 0xa1c
push 0x454a90
call dword [sym.imp.SQLSVC.dll_SHRecMemInit]
add esp, 0xc
push 0xa
push 4
push 0x454a70
call dword [sym.imp.SQLSVC.dll_SHRecMemInit]
add esp, 0xc
push pe_nt_image_headers32
push 0x4568cc
push 0x3e8
mov ecx, dword [0x4562a4]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
cmp dword [ebp + 0x10], 0
je 0x40555c
push 0x3fc
mov edx, dword [ebp + 0x10]
push edx
push 0x456b34
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov word [0x45732c], 0
cmp dword [ebp + 0x10], 0
je 0x405756
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x405756
lea ecx, [ebp - 0x370]
push ecx
push 0x456acc
push 0x454ab0
push 0x4564bc
push 0x4566c4
push 0x4556b8
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040c816
add esp, 0x1c
mov dword [0x456ad4], eax
cmp dword [0x456ad4], 0
jne 0x40561e
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40561e
mov ecx, dword [ebp + 0x10]
push ecx
push str._f__s
lea edx, [ebp - 0xb90]
push edx
mov eax, dword [0x454ae0]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x370]
push ecx
push 0x456acc
push 0x454ab0
push 0x4564bc
push 0x4566c4
push 0x4556b8
lea edx, [ebp - 0xb90]
push edx
call fcn.0040c816
add esp, 0x1c
mov dword [0x456ad4], eax
mov eax, dword [0x456acc]
and eax, 0x10
test eax, eax
jne 0x4056b5
cmp dword [0x456ad4], 0
je 0x4056b5
mov ecx, dword [0x456acc]
and ecx, 1
test ecx, ecx
je 0x405651
mov edx, dword [0x456acc]
and edx, 2
test edx, edx
je 0x4056b5
mov eax, dword [0x456acc]
and eax, 1
test eax, eax
jne 0x40566a
mov ecx, dword [0x456acc]
and ecx, 2
test ecx, ecx
jne 0x4056b5
mov edx, dword [0x456acc]
and edx, 0x40
test edx, edx
je 0x405683
mov eax, dword [0x456acc]
and eax, 1
test eax, eax
jne 0x4056b5
mov ecx, dword [0x456acc]
and ecx, 0x80
test ecx, ecx
jne 0x4056a0
mov edx, dword [0x456acc]
and edx, 1
test edx, edx
jne 0x4056b5
mov eax, dword [0x456acc]
and eax, 0x40
test eax, eax
je 0x405708
cmp dword [0x457980], 1
jge 0x405708
push 0x400
lea ecx, [ebp - 0x1390]
push ecx
push 0x7b
mov edx, dword [0x4562a4]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x40
push 0x4568cc
lea eax, [ebp - 0x1390]
push eax
push 0
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x1398], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1398]
jmp 0x405dd5
cmp dword [0x456ad4], 0
je 0x405756
mov ecx, dword [0x456acc]
and ecx, 0x400
test ecx, ecx
jne 0x40573f
mov edx, dword [0x456acc]
and edx, 0x800
test edx, edx
jne 0x40573f
mov eax, dword [0x456acc]
and eax, 0x1000
test eax, eax
je 0x405756
push 0x457754
push 0x457344
push 0x45754c
call fcn.0041e3cf
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x405923
call fcn.0040daed
test eax, eax
jne 0x40578b
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x139c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x139c]
jmp 0x405dd5
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0x405e42
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov ecx, dword [0x4562a8]
mov dword [ebp - 0x144], ecx
push 0x84
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov edx, dword [0x4562a4]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadIcon_8]
mov dword [ebp - 0x140], eax
push 0x7f00
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
push 0
call dword [sym.imp.SQLUNIRL.dll__LoadCursor_8]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], 0xc
mov dword [ebp - 0x134], 0
mov eax, dword [0x456acc]
and eax, 1
test eax, eax
je 0x405824
mov dword [ebp - 0x130], 0x4526b8
jmp 0x40582e
mov dword [ebp - 0x130], 0x4526ec
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [0x454ae0]
call dword [edx + 0x3bc]
and eax, 0xffff
test eax, eax
jne 0x40586c
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13a0], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13a0]
jmp 0x405dd5
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0x40bc2f
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov eax, dword [0x4562a8]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0
push 0x7f00
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
push 0
call dword [sym.imp.SQLUNIRL.dll__LoadCursor_8]
mov dword [ebp - 0x13c], eax
push 1
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], str.ISQLWMDICallbackWindowClass
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [0x454ae0]
call dword [edx + 0x3bc]
and eax, 0xffff
test eax, eax
jne 0x405923
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13a4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13a4]
jmp 0x405dd5
push 0x67
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov eax, dword [0x4562a4]
push eax
mov ecx, dword [0x454ae0]
call dword [ecx + 0x2b0]
mov dword [0x4562b0], eax
mov edx, dword [0x4562b0]
mov dword [0x4562b4], edx
push 0xaa
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov eax, dword [0x4562a4]
push eax
mov ecx, dword [0x454ae0]
call dword [ecx + 0x2b0]
mov dword [0x4562ac], eax
push 0x64
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov edx, dword [0x4562a4]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadMenu_8]
mov dword [0x456adc], eax
mov dword [ebp - 0x390], 0
jmp 0x4059a8
mov eax, dword [ebp - 0x390]
add eax, 1
mov dword [ebp - 0x390], eax
cmp dword [ebp - 0x390], 5
jg 0x4059d4
mov ecx, dword [ebp - 0x390]
push ecx
mov edx, dword [0x456adc]
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [ebp - 0x390]
mov dword [ecx*4 + 0x456ae0], eax
jmp 0x405999
push 0
mov edx, dword [0x456aec]
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [0x456af8], eax
push 1
mov eax, dword [0x456aec]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [0x456afc], eax
push 0
push 0x454ab8
call fcn.004279a0
add esp, 8
cmp dword [0x454ac0], 0xffffffff
jne 0x405a34
push 0
push 0x454ac8
push 0
push 0x30
mov ecx, dword [0x454ae0]
call dword [ecx + 0x484]
mov dword [0x454ac0], 0
push 0x456b34
mov edx, dword [0x456acc]
push edx
call fcn.0040e59a
add esp, 8
test eax, eax
jne 0x405a6e
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13a8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13a8]
jmp 0x405dd5
mov eax, dword [0x456acc]
and eax, 1
test eax, eax
je 0x405a86
mov dword [ebp - 0x13ac], str.ISQLWWindowClassMinimized
jmp 0x405a90
mov dword [ebp - 0x13ac], 0x45277c
push 0
mov ecx, dword [0x4562a8]
push ecx
mov edx, dword [0x456adc]
push edx
push 0
mov eax, dword [0x454ad4]
push eax
mov ecx, dword [0x454ad0]
push ecx
mov edx, dword [0x454acc]
push edx
mov eax, dword [0x454ac8]
push eax
push 0xcf0000
push 0x4568cc
mov ecx, dword [ebp - 0x13ac]
push ecx
push 0
call dword [sym.imp.SQLUNIRL.dll__CreateWindowEx_48]
mov dword [0x456298], eax
cmp dword [0x456298], 0
jne 0x405b0a
call fcn.0040e62c
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13b0], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13b0]
jmp 0x405dd5
push 0x4568cc
call dword [sym.imp.SQLSVC.dll_SetTaskName]
add esp, 4
call fcn.00409a6b
call fcn.0040b22f
mov dword [0x456290], 0
mov dword [0x456294], 0
mov edx, dword [0x456acc]
and edx, 1
test edx, edx
je 0x405b53
push 0
mov eax, dword [0x456298]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x405b84
cmp dword [0x454ac0], 1
jne 0x405b68
mov dword [ebp - 0x13b4], 3
jmp 0x405b71
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x13b4], ecx
mov edx, dword [ebp - 0x13b4]
push edx
mov eax, dword [0x456298]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x456b04]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea edx, [ebp - 0x38c]
push edx
mov eax, dword [0x454ae0]
call dword [eax + 0x21c]
test eax, eax
je 0x405d5a
push 0x454aec
push 0x454ae8
call fcn.0040d546
add esp, 8
cmp dword [0x456b04], 0
je 0x405be6
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x456b04]
push edx
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
test eax, eax
je 0x405be6
jmp 0x405b91
cmp dword [0x456b14], 0
je 0x405c2b
cmp dword [0x456b1c], 4
jne 0x405c2b
mov eax, dword [0x456b14]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405c2b
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x4562ac]
push edx
mov eax, dword [0x456b14]
push eax
call dword [sym.imp.SQLUNIRL.dll__TranslateAccelerator_12]
test eax, eax
je 0x405c2b
jmp 0x405b91
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x4562b4]
push edx
mov eax, dword [0x456298]
push eax
call dword [sym.imp.SQLUNIRL.dll__TranslateAccelerator_12]
test eax, eax
je 0x405c4e
jmp 0x405b91
cmp dword [0x456290], 0
je 0x405c74
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x456290]
push edx
call dword [sym.imp.SQLUNIRL.dll__IsDialogMessage_8]
test eax, eax
je 0x405c74
jmp 0x405b91
cmp dword [0x456294], 0
je 0x405c9a
lea eax, [ebp - 0x38c]
push eax
mov ecx, dword [0x456294]
push ecx
call dword [sym.imp.SQLUNIRL.dll__IsDialogMessage_8]
test eax, eax
je 0x405c9a
jmp 0x405b91
cmp dword [0x456b08], 0
je 0x405d1e
mov edx, dword [0x456b08]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405d1e
push 0xffffffffffffffeb
mov eax, dword [0x456b08]
push eax
call dword [sym.imp.SQLUNIRL.dll__GetWindowLong_8]
mov dword [ebp - 0x1394], eax
cmp dword [ebp - 0x1394], 0
je 0x405d01
mov ecx, dword [ebp - 0x1394]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405d01
lea edx, [ebp - 0x38c]
push edx
mov eax, dword [ebp - 0x1394]
push eax
call dword [sym.imp.SQLUNIRL.dll__IsDialogMessage_8]
test eax, eax
je 0x405cff
jmp 0x405b91
jmp 0x405d1e
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x456b08]
push edx
call dword [sym.imp.SQLUNIRL.dll__IsDialogMessage_8]
test eax, eax
je 0x405d1e
jmp 0x405b91
lea eax, [ebp - 0x38c]
push eax
call fcn.0040a444
add esp, 4
test eax, eax
je 0x405d36
jmp 0x405b91
lea ecx, [ebp - 0x38c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x38c]
push edx
mov eax, dword [0x454ae0]
call dword [eax + 0xf0]
jmp 0x405b91
call fcn.00409d3d
push 0x454a70
call dword [sym.imp.SQLSVC.dll_SHRecMemFree]
add esp, 4
call dword [sym.imp.SQLGUI.dll_SQLGUIFreeMenuItems]
mov ecx, dword [0x456adc]
push ecx
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x405d91
mov edx, dword [0x456adc]
push edx
call dword [sym.imp.USER32.dll_DestroyMenu]
call fcn.0040e62c
call fcn.0040c753
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0x4562a4
mov eax, dword [0x4562a8]
push eax
call dword [sym.imp.SQLRESLD.dll_SQLUIUnloadResourceDLL]
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x405dcf
mov eax, dword [ebp - 0x384]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10