Function at 0x403b61
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84c], eax
cmp dword [ebp - 0x84c], 0x203
je 0x403b94
cmp dword [ebp - 0x84c], 0x204
je 0x403c28
jmp 0x404250
mov ecx, dword [0x41135c]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403bbe
push 0
push 0xf120
push 0x112
mov edx, dword [0x41135c]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 5
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x411358], 0
je 0x403be3
mov ecx, dword [0x411358]
mov dword [ebp - 0x850], ecx
jmp 0x403bef
mov edx, dword [0x41135c]
mov dword [ebp - 0x850], edx
mov eax, dword [ebp - 0x850]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor ecx, ecx
cmp dword [0x41264c], 0
setne cl
add ecx, 0x3e8
push ecx
mov edx, dword [0x41135c]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x404250
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x840], 0
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
je 0x404224
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x840], 0
je 0x404224
cmp dword [0x411358], 0
je 0x403c92
mov ecx, dword [0x411358]
mov dword [ebp - 0x854], ecx
jmp 0x403c9e
mov edx, dword [0x41135c]
mov dword [ebp - 0x854], edx
mov eax, dword [ebp - 0x854]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x104
push 0x411bc0
push 0x1d
mov ecx, dword [0x411478]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x2c
push 0
lea edx, [ebp - 0x2c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c], 0x2c
mov dword [ebp - 0x28], 0x13
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x1000
push 0x411bc0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0x1f4
mov dword [ebp - 8], 0x411bc0
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x294]
push 0
push 0
push 0x146
push 0x3e9
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x848], 0
jmp 0x403d5f
mov ecx, dword [ebp - 0x848]
add ecx, 1
mov dword [ebp - 0x848], ecx
mov edx, dword [ebp - 0x848]
cmp edx, dword [ebp - 0x30]
jge 0x403e1f
push 0x411bc0
mov eax, dword [ebp - 0x848]
push eax
push 0x148
push 0x3e9
mov ecx, dword [0x41135c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
push 0x411bc0
mov edx, dword [ebp - 0x848]
add edx, 0x1388
push edx
push 0
mov eax, dword [ebp - 0x840]
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x10]
push 0
push 0
push 0x411bc0
push 0x208
push 1
push 0
push 0x411338
call fcn.0040b3d0
add esp, 0x1c
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0
je 0x403e1a
mov edx, dword [ebp - 0x844]
push edx
push 0x4110d0
mov eax, dword [0x41109c]
call dword [eax + 0x4bc]
test eax, eax
jne 0x403e1a
push 8
mov ecx, dword [ebp - 0x848]
add ecx, 0x1388
push ecx
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x403d50
push 0x104
push 0x411bc0
push 0x1c
mov eax, dword [0x411478]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x412220
push 0x411bc0
lea ecx, [ebp - 0x830]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x840]
push ecx
push 0x10
mov edx, dword [ebp - 0x834]
push edx
mov eax, dword [0x41109c]
call dword [eax + 0x10]
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x10]
push 0x104
push 0x411bc0
push 5
mov eax, dword [0x411478]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x4110d0
push 0x411bc0
lea ecx, [ebp - 0x830]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x9c4a
push 0
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x10]
push 0x104
push 0x411bc0
push 4
mov eax, dword [0x411478]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x4110d0
push 0x411bc0
lea ecx, [ebp - 0x830]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x9c4b
push 0
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x10]
cmp dword [0x40f460], 0x6f
je 0x403f59
cmp dword [0x40f460], 0x73
je 0x403f59
mov dword [ebp - 0x858], 3
jmp 0x403f63
mov dword [ebp - 0x858], 6
push 0x208
push 0x411bc0
mov eax, dword [ebp - 0x858]
push eax
mov ecx, dword [0x411478]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x4110d0
push 0x411bc0
lea edx, [ebp - 0x830]
push edx
mov eax, dword [0x41109c]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x830]
push ecx
push 0x9c4c
push 0
mov edx, dword [ebp - 0x834]
push edx
mov eax, dword [0x41109c]
call dword [eax + 0x10]
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x10]
push 0x104
push 0x411bc0
push 2
mov eax, dword [0x411478]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x411bc0
push 0x9c40
push 0
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x10]
push 0x104
push 0x411bc0
push 0x1e
mov eax, dword [0x411478]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x411bc0
push 0x1f5
push 0
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x10]
push 0x104
push 0x411bc0
push 7
mov eax, dword [0x411478]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x411bc0
push 0x9c41
push 0
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x10]
xor eax, eax
mov ax, word [0x4110d0]
test eax, eax
je 0x4040a5
cmp dword [0x412654], 0
jne 0x4040a5
cmp dword [0x40f460], 0x6e
je 0x4040a5
cmp dword [0x40f460], 0x72
je 0x4040a5
mov dword [ebp - 0x85c], 0
jmp 0x4040af
mov dword [ebp - 0x85c], 1
mov ecx, dword [ebp - 0x85c]
push ecx
push 0x9c4a
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
xor eax, eax
mov ax, word [0x4110d0]
test eax, eax
je 0x40410d
cmp dword [0x412654], 0
jne 0x40410d
cmp dword [0x40f460], 0x6e
je 0x40410d
cmp dword [0x40f460], 0x72
je 0x40410d
cmp dword [0x40f460], 0x6f
je 0x40410d
cmp dword [0x40f460], 0x73
je 0x40410d
mov dword [ebp - 0x860], 0
jmp 0x404117
mov dword [ebp - 0x860], 1
mov ecx, dword [ebp - 0x860]
push ecx
push 0x9c4b
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
xor eax, eax
mov ax, word [0x4110d0]
test eax, eax
je 0x404163
cmp dword [0x412654], 0
jne 0x404163
cmp dword [0x40f460], 0x70
je 0x404163
cmp dword [0x40f460], 0x74
je 0x404163
mov dword [ebp - 0x864], 0
jmp 0x40416d
mov dword [ebp - 0x864], 1
mov ecx, dword [ebp - 0x864]
push ecx
push 0x9c4c
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp dword [0x41097c], 0
jne 0x4041aa
cmp dword [0x410964], 0
jne 0x4041aa
cmp dword [0x410968], 0
jne 0x4041aa
cmp dword [0x41096c], 0
je 0x4041be
push 1
push 0x9c4b
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp dword [0x410970], 0
je 0x4041ed
cmp dword [0x40f460], 0x6f
je 0x4041d9
cmp dword [0x40f460], 0x73
jne 0x4041ed
push 1
push 0x9c4a
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
mov edx, dword [0x41135c]
push edx
push 0
mov eax, dword [ebp - 0x838]
push eax
mov ecx, dword [ebp - 0x83c]
push ecx
xor edx, edx
cmp dword [ebp + 8], 0x204
setne dl
dec edx
and edx, 2
push edx
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp dword [ebp - 0x834], 0
je 0x40423a
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp dword [ebp - 0x840], 0
je 0x404250
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, 1
mov esp, ebp
pop ebp
ret