Function at 0x403ee0
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x412860]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], 0x203
je 0x403f1d
cmp dword [ebp - 0x854], 0x204
je 0x403fb1
jmp 0x404558
mov ecx, dword [0x4132dc]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403f47
push 0
push 0xf120
push 0x112
mov edx, dword [0x4132dc]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 5
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x4132d8], 0
je 0x403f6c
mov ecx, dword [0x4132d8]
mov dword [ebp - 0x858], ecx
jmp 0x403f78
mov edx, dword [0x4132dc]
mov dword [ebp - 0x858], edx
mov eax, dword [ebp - 0x858]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor ecx, ecx
cmp dword [0x4145cc], 0
setne cl
add ecx, 0x3e8
push ecx
mov edx, dword [0x4132dc]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x404558
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x404538
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x404538
cmp dword [0x4132d8], 0
je 0x404006
mov ecx, dword [0x4132d8]
mov dword [ebp - 0x85c], ecx
jmp 0x404012
mov edx, dword [0x4132dc]
mov dword [ebp - 0x85c], edx
mov eax, dword [ebp - 0x85c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x104
push 0x413b40
push 0x1d
mov ecx, dword [0x4133f8]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x2c
push 0
lea edx, [ebp - 0x30]
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], 0x2c
mov dword [ebp - 0x2c], 0x13
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x1000
push 0x413b40
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x1f4
mov dword [ebp - 0xc], 0x413b40
lea eax, [ebp - 0x30]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x294]
push 0
push 0
push 0x146
push 0x3e9
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], 0
jmp 0x4040c7
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x48]
jge 0x40416c
push 0x413b40
mov eax, dword [ebp - 0x34]
push eax
push 0x148
push 0x3e9
mov ecx, dword [0x4132dc]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
push 0x413b40
mov edx, dword [ebp - 0x34]
add edx, 0x1388
push edx
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x10]
push 0
push 0
push 0x413b40
push 0x208
push 1
push 0
push 0x4132b8
call fcn.0040b970
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404167
mov edx, dword [ebp - 4]
push edx
push 0x413050
mov eax, dword [0x41301c]
call dword [eax + 0x4bc]
test eax, eax
jne 0x404167
push 8
mov ecx, dword [ebp - 0x34]
add ecx, 0x1388
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x4040be
push 0x104
push 0x413b40
push 0x1c
mov eax, dword [0x4133f8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x4141a0
push 0x413b40
lea ecx, [ebp - 0x850]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0x10
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [0x41301c]
call dword [eax + 0x10]
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x10]
push 0x104
push 0x413b40
push 5
mov eax, dword [0x4133f8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x413050
push 0x413b40
lea ecx, [ebp - 0x850]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
push 0x9c4a
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x10]
push 0x104
push 0x413b40
push 4
mov eax, dword [0x4133f8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x413050
push 0x413b40
lea ecx, [ebp - 0x850]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
push 0x9c4b
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x10]
cmp dword [0x4113c0], 0x6f
je 0x404297
cmp dword [0x4113c0], 0x73
je 0x404297
mov dword [ebp - 0x860], 3
jmp 0x4042a1
mov dword [ebp - 0x860], 6
push 0x208
push 0x413b40
mov eax, dword [ebp - 0x860]
push eax
mov ecx, dword [0x4133f8]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x413050
push 0x413b40
lea edx, [ebp - 0x850]
push edx
mov eax, dword [0x41301c]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x850]
push ecx
push 0x9c4c
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [0x41301c]
call dword [eax + 0x10]
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x10]
push 0x104
push 0x413b40
push 2
mov eax, dword [0x4133f8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x413b40
push 0x9c40
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x10]
push 0x104
push 0x413b40
push 0x1e
mov eax, dword [0x4133f8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x413b40
push 0x1f5
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x10]
push 0x104
push 0x413b40
push 7
mov eax, dword [0x4133f8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x413b40
push 0x9c41
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x10]
movzx eax, word [0x413050]
test eax, eax
je 0x4043d3
cmp dword [0x4145d4], 0
jne 0x4043d3
cmp dword [0x4113c0], 0x6e
je 0x4043d3
cmp dword [0x4113c0], 0x72
je 0x4043d3
mov dword [ebp - 0x864], 0
jmp 0x4043dd
mov dword [ebp - 0x864], 1
mov ecx, dword [ebp - 0x864]
push ecx
push 0x9c4a
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
movzx eax, word [0x413050]
test eax, eax
je 0x404437
cmp dword [0x4145d4], 0
jne 0x404437
cmp dword [0x4113c0], 0x6e
je 0x404437
cmp dword [0x4113c0], 0x72
je 0x404437
cmp dword [0x4113c0], 0x6f
je 0x404437
cmp dword [0x4113c0], 0x73
je 0x404437
mov dword [ebp - 0x868], 0
jmp 0x404441
mov dword [ebp - 0x868], 1
mov ecx, dword [ebp - 0x868]
push ecx
push 0x9c4b
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
movzx eax, word [0x413050]
test eax, eax
je 0x404489
cmp dword [0x4145d4], 0
jne 0x404489
cmp dword [0x4113c0], 0x70
je 0x404489
cmp dword [0x4113c0], 0x74
je 0x404489
mov dword [ebp - 0x86c], 0
jmp 0x404493
mov dword [ebp - 0x86c], 1
mov ecx, dword [ebp - 0x86c]
push ecx
push 0x9c4c
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp dword [0x4128fc], 0
jne 0x4044cd
cmp dword [0x4128e4], 0
jne 0x4044cd
cmp dword [0x4128e8], 0
jne 0x4044cd
cmp dword [0x4128ec], 0
je 0x4044de
push 1
push 0x9c4b
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp dword [0x4128f0], 0
je 0x40450a
cmp dword [0x4113c0], 0x6f
je 0x4044f9
cmp dword [0x4113c0], 0x73
jne 0x40450a
push 1
push 0x9c4a
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
mov edx, dword [0x4132dc]
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
xor edx, edx
cmp dword [ebp + 8], 0x204
setne dl
dec edx
and edx, 2
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp dword [ebp - 0x3c], 0
je 0x404548
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp dword [ebp - 0x38], 0
je 0x404558
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, 1
mov ecx, dword [ebp - 0x4c]
call fcn.0040cd05
mov esp, ebp
pop ebp
ret