Function at 0x405406
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448bf0
push 0x44522e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x139c
call fcn.00445190
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 0x405ded
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 0
push 0
push 0
push 2
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
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 0x100
push 0x4568cc
push 0x3e8
mov ecx, dword [0x4562a4]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
cmp dword [ebp + 0x10], 0
je 0x405574
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 0x40576e
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40576e
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.0040c8b8
add esp, 0x1c
mov dword [0x456ad4], eax
cmp dword [0x456ad4], 0
jne 0x405636
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x405636
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.0040c8b8
add esp, 0x1c
mov dword [0x456ad4], eax
mov eax, dword [0x456acc]
and eax, 0x10
test eax, eax
jne 0x4056cd
cmp dword [0x456ad4], 0
je 0x4056cd
mov ecx, dword [0x456acc]
and ecx, 1
test ecx, ecx
je 0x405669
mov edx, dword [0x456acc]
and edx, 2
test edx, edx
je 0x4056cd
mov eax, dword [0x456acc]
and eax, 1
test eax, eax
jne 0x405682
mov ecx, dword [0x456acc]
and ecx, 2
test ecx, ecx
jne 0x4056cd
mov edx, dword [0x456acc]
and edx, 0x40
test edx, edx
je 0x40569b
mov eax, dword [0x456acc]
and eax, 1
test eax, eax
jne 0x4056cd
mov ecx, dword [0x456acc]
and ecx, 0x80
test ecx, ecx
jne 0x4056b8
mov edx, dword [0x456acc]
and edx, 1
test edx, edx
jne 0x4056cd
mov eax, dword [0x456acc]
and eax, 0x40
test eax, eax
je 0x405720
cmp dword [0x457980], 1
jge 0x405720
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 0x405ded
cmp dword [0x456ad4], 0
je 0x40576e
mov ecx, dword [0x456acc]
and ecx, 0x400
test ecx, ecx
jne 0x405757
mov edx, dword [0x456acc]
and edx, 0x800
test edx, edx
jne 0x405757
mov eax, dword [0x456acc]
and eax, 0x1000
test eax, eax
je 0x40576e
push 0x457754
push 0x457344
push 0x45754c
call fcn.0041e65f
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x40593b
call fcn.0040dc7f
test eax, eax
jne 0x4057a3
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x139c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x139c]
jmp 0x405ded
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0x405e5a
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 0x40583c
mov dword [ebp - 0x130], 0x4526b8
jmp 0x405846
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 0x405884
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13a0], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13a0]
jmp 0x405ded
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0x40bc4f
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 0x40593b
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13a4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13a4]
jmp 0x405ded
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 0x4059c0
mov eax, dword [ebp - 0x390]
add eax, 1
mov dword [ebp - 0x390], eax
cmp dword [ebp - 0x390], 5
jg 0x4059ec
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 0x4059b1
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.00427bc0
add esp, 8
cmp dword [0x454ac0], 0xffffffff
jne 0x405a4c
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.0040e72c
add esp, 8
test eax, eax
jne 0x405a86
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13a8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13a8]
jmp 0x405ded
mov eax, dword [0x456acc]
and eax, 1
test eax, eax
je 0x405a9e
mov dword [ebp - 0x13ac], str.ISQLWWindowClassMinimized
jmp 0x405aa8
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 0x405b22
call fcn.0040e7be
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 0x13b0], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13b0]
jmp 0x405ded
push 0x4568cc
call dword [sym.imp.SQLSVC.dll_SetTaskName]
add esp, 4
call fcn.00409a83
call fcn.0040b247
mov dword [0x456290], 0
mov dword [0x456294], 0
mov edx, dword [0x456acc]
and edx, 1
test edx, edx
je 0x405b6b
push 0
mov eax, dword [0x456298]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x405b9c
cmp dword [0x454ac0], 1
jne 0x405b80
mov dword [ebp - 0x13b4], 3
jmp 0x405b89
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 0x405d72
push 0x454aec
push 0x454ae8
call fcn.0040d6d8
add esp, 8
cmp dword [0x456b04], 0
je 0x405bfe
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x456b04]
push edx
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
test eax, eax
je 0x405bfe
jmp 0x405ba9
cmp dword [0x456b14], 0
je 0x405c43
cmp dword [0x456b1c], 4
jne 0x405c43
mov eax, dword [0x456b14]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405c43
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 0x405c43
jmp 0x405ba9
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 0x405c66
jmp 0x405ba9
cmp dword [0x456290], 0
je 0x405c8c
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x456290]
push edx
call dword [sym.imp.SQLUNIRL.dll__IsDialogMessage_8]
test eax, eax
je 0x405c8c
jmp 0x405ba9
cmp dword [0x456294], 0
je 0x405cb2
lea eax, [ebp - 0x38c]
push eax
mov ecx, dword [0x456294]
push ecx
call dword [sym.imp.SQLUNIRL.dll__IsDialogMessage_8]
test eax, eax
je 0x405cb2
jmp 0x405ba9
cmp dword [0x456b08], 0
je 0x405d36
mov edx, dword [0x456b08]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405d36
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 0x405d19
mov ecx, dword [ebp - 0x1394]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405d19
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 0x405d17
jmp 0x405ba9
jmp 0x405d36
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [0x456b08]
push edx
call dword [sym.imp.SQLUNIRL.dll__IsDialogMessage_8]
test eax, eax
je 0x405d36
jmp 0x405ba9
lea eax, [ebp - 0x38c]
push eax
call fcn.0040a45c
add esp, 4
test eax, eax
je 0x405d4e
jmp 0x405ba9
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 0x405ba9
call fcn.00409d55
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 0x405da9
mov edx, dword [0x456adc]
push edx
call dword [sym.imp.USER32.dll_DestroyMenu]
call fcn.0040e7be
call fcn.0040c7f5
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 0x405de7
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