Function at 0x404570
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x17a8
call fcn.0040cd20
mov eax, dword [0x412860]
mov dword [ebp - 0x14], eax
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x178c], eax
cmp dword [ebp - 0x178c], 0x3fd
ja 0x404623
cmp dword [ebp - 0x178c], 0x3fd
je 0x404ac5
cmp dword [ebp - 0x178c], 0x3e8
ja 0x4045f2
cmp dword [ebp - 0x178c], 0x3e8
je 0x404ed2
cmp dword [ebp - 0x178c], 0x1f4
je 0x404989
cmp dword [ebp - 0x178c], 0x1f5
je 0x404941
jmp 0x4056a8
cmp dword [ebp - 0x178c], 0x3e9
je 0x404bb7
cmp dword [ebp - 0x178c], 0x3f4
jbe 0x4056a8
cmp dword [ebp - 0x178c], 0x3f7
jbe 0x404699
jmp 0x4056a8
cmp dword [ebp - 0x178c], 0x9c41
ja 0x404664
cmp dword [ebp - 0x178c], 0x9c41
je 0x4048d7
cmp dword [ebp - 0x178c], 0x3ff
je 0x405677
cmp dword [ebp - 0x178c], 0x9c40
je 0x4048a3
jmp 0x4056a8
cmp dword [ebp - 0x178c], 0x9c42
je 0x40491f
cmp dword [ebp - 0x178c], 0x9c49
jbe 0x4056a8
cmp dword [ebp - 0x178c], 0x9c4c
jbe 0x4049f3
jmp 0x4056a8
cmp dword [0x4145d4], 0
je 0x4046a7
jmp 0x4056a8
cmp dword [0x4128e0], 0
je 0x4046e7
push 0x104
push 0x413b40
push 0x57
mov ecx, dword [0x4133f8]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x40
push 0x4143c0
push 0x413b40
mov edx, dword [0x4132dc]
push edx
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
jmp 0x4056a8
cmp dword [ebp + 0xc], 0
jne 0x40489e
cmp dword [0x4113c8], 3
jl 0x40489e
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1790], eax
cmp dword [ebp - 0x1790], 0x3f5
je 0x4047d3
cmp dword [ebp - 0x1790], 0x3f6
je 0x404760
cmp dword [ebp - 0x1790], 0x3f7
je 0x404742
jmp 0x404807
cmp dword [0x4113c0], 0x6e
je 0x40475b
cmp dword [0x4113c0], 0x72
je 0x40475b
mov dword [ebp - 4], 0
jmp 0x404807
cmp dword [0x4113c0], 0x6e
je 0x404772
cmp dword [0x4113c0], 0x72
jne 0x4047a6
push 0x104
push 0x413b40
push 0xb
mov ecx, dword [0x4133f8]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x40
push 0x4143c0
push 0x413b40
mov edx, dword [0x4132dc]
push edx
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
jmp 0x404807
cmp dword [0x4113c0], 0x6f
je 0x4047d1
cmp dword [0x4113c0], 0x73
je 0x4047d1
cmp dword [0x4113c0], 0x6e
je 0x4047d1
cmp dword [0x4113c0], 0x72
je 0x4047d1
mov dword [ebp - 4], 1
jmp 0x404807
cmp dword [0x4113c0], 0x6f
je 0x4047e5
cmp dword [0x4113c0], 0x73
jne 0x4047ee
mov dword [ebp - 4], 3
jmp 0x404807
cmp dword [0x4113c0], 0x70
je 0x404807
cmp dword [0x4113c0], 0x74
je 0x404807
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
push eax
push 0x413050
push 0x4141a0
mov ecx, dword [0x4132dc]
push ecx
call fcn.00405b70
add esp, 0x10
test eax, eax
je 0x404879
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1794], edx
cmp dword [ebp - 0x1794], 0x3f5
je 0x40486f
cmp dword [ebp - 0x1794], 0x3f6
je 0x404863
cmp dword [ebp - 0x1794], 0x3f7
je 0x404857
jmp 0x404879
mov dword [0x4113c8], 1
jmp 0x404879
mov dword [0x4113c8], 2
jmp 0x404879
mov dword [0x4113c8], 0
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x3ff
mov ecx, dword [0x4132dc]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4056a8
cmp dword [0x4145d0], 0
jne 0x4048d2
push 0
push 0
push 0xbb8
push 2
mov edx, dword [0x4132dc]
push edx
call fcn.0040c1d0
add esp, 0x14
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4056a8
cmp dword [0x4145d0], 0
jne 0x40491a
mov dword [0x4145d0], 1
push 0
push 0x401570
mov ecx, dword [0x4132dc]
push ecx
push 0x6a
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov edx, dword [0x4133f8]
push edx
call fcn.00402230
add esp, 0x14
mov dword [0x4145d0], 0
jmp 0x4056a8
push 0x411550
mov eax, dword [0x4132dc]
push eax
call fcn.0040c3f0
add esp, 8
mov dword [0x4145c8], 0
jmp 0x4056a8
cmp dword [0x4145d0], 0
jne 0x404984
mov dword [0x4145d0], 1
push 0
push 0x401980
mov ecx, dword [0x4132dc]
push ecx
push 0x6b
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov edx, dword [0x4133f8]
push edx
call fcn.00402230
add esp, 0x14
mov dword [0x4145d0], 0
jmp 0x4056a8
push 5
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x4132d8], 0
je 0x4049ae
mov ecx, dword [0x4132d8]
mov dword [ebp - 0x1798], ecx
jmp 0x4049ba
mov edx, dword [0x4132dc]
mov dword [ebp - 0x1798], edx
mov eax, dword [ebp - 0x1798]
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 0x4056a8
mov dword [ebp - 0xc], 0xffffffff
cmp dword [0x4145d0], 0
je 0x404a08
jmp 0x4056a8
mov dword [0x4145d0], 1
mov eax, dword [0x4113c0]
mov dword [ebp - 0x179c], eax
mov ecx, dword [ebp - 0x179c]
sub ecx, 0x6e
mov dword [ebp - 0x179c], ecx
cmp dword [ebp - 0x179c], 7
ja case.default.0x404a3b
mov edx, dword [ebp - 0x179c]
jmp dword [edx*4 + 0x40571c]
mov eax, dword [ebp + 8]
sub eax, 0x9c4a
mov dword [ebp - 0xc], eax
jmp case.default.0x404a3b
cmp dword [ebp + 8], 0x9c4c
jne 0x404a5f
mov dword [ebp - 0xc], 2
jmp case.default.0x404a3b
cmp dword [ebp + 8], 0x9c4c
jne 0x404a73
mov dword [ebp - 0xc], 3
jmp 0x404a83
cmp dword [ebp + 8], 0x9c4a
jne 0x404a83
mov dword [ebp - 0xc], 0
jmp case.default.0x404a3b
cmp dword [ebp + 8], 0x9c4c
je case.default.0x404a3b
mov ecx, dword [ebp + 8]
sub ecx, 0x9c4a
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x413050
push 0x4141a0
mov eax, dword [0x4132dc]
push eax
call fcn.00405b70
add esp, 0x10
mov dword [0x4145d0], 0
jmp 0x4056a8
push 0x3fd
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [ebp - 0x10], eax
cmp dword [0x4145cc], 0
jne 0x404b02
mov edx, dword [ebp - 0x10]
push edx
push 0x413050
push 0x4141a0
call fcn.00407440
add esp, 0xc
jmp 0x404bb2
mov word [ebp - 0x428], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x426]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x220], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x428]
push ecx
push 0x4141a0
call fcn.00407640
add esp, 0xc
push 0x413d60
lea edx, [ebp - 0x428]
push edx
mov eax, dword [0x41301c]
call dword [eax + 0x4bc]
test eax, eax
jne 0x404bb2
push 1
push 0x413050
push 0x4132b8
call fcn.004080d0
add esp, 0xc
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
je 0x404bb2
mov ecx, dword [ebp - 0x10]
push ecx
push 0x413050
mov edx, dword [ebp - 0x42c]
add edx, 0x208
push edx
push 0x4141a0
call fcn.00409bc0
add esp, 0x10
jmp 0x4056a8
cmp dword [ebp + 0xc], 1
jne 0x404ecd
mov dword [ebp - 0x434], 0
push 0xffffffffffffffff
mov eax, dword [0x4133e8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov word [0x413050], 0
push 0x104
lea ecx, [ebp - 0x640]
push ecx
push 0x3e9
mov edx, dword [0x4132dc]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__GetWindowText_12]
push 0
push 0
lea eax, [ebp - 0x640]
push eax
push 0x208
push 1
push 0
push 0x4132b8
call fcn.0040b970
add esp, 0x1c
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x404da1
mov ecx, dword [ebp - 0x430]
push ecx
push 0x413050
mov edx, dword [0x41301c]
call dword [edx + 0x4c0]
cmp dword [ebp - 0x430], 0
je 0x404d9c
mov eax, dword [ebp - 0x430]
add eax, 0x208
je 0x404d9c
push 0x411570
mov ecx, dword [ebp - 0x430]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4bc]
test eax, eax
je 0x404cae
push 0x411590
mov eax, dword [ebp - 0x430]
add eax, 0x208
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4bc]
test eax, eax
jne 0x404cba
mov dword [0x4128e4], 1
jmp 0x404cc4
mov dword [0x4128e4], 0
push 0x4115b4
mov edx, dword [ebp - 0x430]
add edx, 0x208
push edx
mov eax, dword [0x41301c]
call dword [eax + 0x4bc]
test eax, eax
je 0x404d01
push 0x4115d8
mov ecx, dword [ebp - 0x430]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4bc]
test eax, eax
jne 0x404d0d
mov dword [0x4128e8], 1
jmp 0x404d17
mov dword [0x4128e8], 0
push 0x4115ec
mov eax, dword [ebp - 0x430]
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4bc]
test eax, eax
jne 0x404d3f
mov dword [0x4128ec], 1
jmp 0x404d49
mov dword [0x4128ec], 0
push 0x4115f8
mov edx, dword [ebp - 0x430]
add edx, 0x208
push edx
mov eax, dword [0x41301c]
call dword [eax + 0x4bc]
test eax, eax
je 0x404d86
push 0x411630
mov ecx, dword [ebp - 0x430]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4bc]
test eax, eax
jne 0x404d92
mov dword [0x4128f0], 1
jmp 0x404d9c
mov dword [0x4128f0], 0
call fcn.00406520
push 0
push 1
mov eax, dword [0x4133e8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp dword [0x4128fc], 0
je 0x404dde
push 0
push 0x3fd
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x404eab
cmp dword [0x4145cc], 0
jne 0x404e04
lea edx, [ebp - 0x434]
push edx
push 0x413050
push 0x4141a0
call fcn.00407210
add esp, 0xc
test eax, eax
jne 0x404e36
cmp dword [0x4145cc], 0
je 0x404e74
push 0x4141a0
call fcn.00408020
add esp, 4
test eax, eax
je 0x404e74
lea eax, [ebp - 0x434]
push eax
push 0x413050
call fcn.004099c0
add esp, 8
test eax, eax
je 0x404e74
push 1
push 0x3fd
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x434]
push edx
push 0x3fd
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x404eab
push 0
push 0x3fd
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push 0x3fd
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x75
call fcn.00406dd0
add esp, 8
mov eax, dword [0x4133f4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x4113c8], 7
jmp 0x4056a8
mov cx, word [0x412924]
mov word [ebp - 0xa48], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xa46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x17a0], edx
cmp dword [ebp - 0x17a0], 1
je 0x404f64
cmp dword [ebp - 0x17a0], 4
je 0x404f64
cmp dword [ebp - 0x17a0], 5
je 0x404f1a
jmp 0x405675
mov dword [ebp - 0xa4c], 0
push 0x3e8
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__GetWindowTextLength_4]
mov dword [ebp - 0xa4c], eax
cmp dword [ebp - 0xa4c], 0
je 0x404f55
push 1
call fcn.00403030
add esp, 4
mov dword [0x4128e0], 1
jmp 0x405675
mov dword [ebp - 0xa5c], 0xffffffff
mov dword [ebp - 0xa58], 0
push 0x3e8
mov ecx, dword [0x4132dc]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0xa54], eax
mov dword [ebp - 0xa50], 0
cmp dword [ebp + 0xc], 4
jne 0x40550c
cmp dword [0x4128e0], 0
jne 0x404fb2
jmp 0x405675
push 0xffffffffffffffff
mov edx, dword [0x4133e8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x103
push 0x4141a0
mov eax, dword [ebp - 0xa54]
push eax
call dword [sym.imp.SQLUNIRL.dll__GetWindowText_12]
push 0
push 1
mov ecx, dword [0x4133e8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x4141a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4050b4
mov dx, word [0x41292c]
mov word [ebp - 0xc60], dx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xc5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x412934]
mov word [ebp - 0xe60], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xe5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
lea ecx, [ebp - 0xc60]
push ecx
push 0x67
mov edx, dword [0x4133f8]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0xff
lea eax, [ebp - 0xe60]
push eax
push 1
mov ecx, dword [0x4133f8]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0
lea edx, [ebp - 0xe60]
push edx
lea eax, [ebp - 0xc60]
push eax
mov ecx, dword [0x4132dc]
push ecx
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
push 0x412938
push 0x413f80
mov edx, dword [0x41301c]
call dword [edx + 0x4c0]
mov eax, dword [ebp - 0xa54]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x405675
push 0x4141a0
push 0x413f80
mov ecx, dword [0x41301c]
call dword [ecx + 0x4c0]
push 0x5c
push 0x413f80
call sub.MSVCR71.dll_wcsrchr
add esp, 8
mov dword [ebp - 0xa50], eax
cmp dword [ebp - 0xa50], 0
je 0x4050f3
mov edx, dword [ebp - 0xa50]
mov word [edx], 0
push 0x4141a0
mov eax, dword [ebp - 0xa5c]
push eax
push 0x158
mov ecx, dword [ebp - 0xa54]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa5c], eax
cmp dword [ebp - 0xa5c], 0xffffffff
je 0x405197
push 0
mov edx, dword [ebp - 0xa5c]
push edx
push 0x14e
mov eax, dword [ebp - 0xa54]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0
mov ecx, dword [ebp - 0xa5c]
push ecx
push 0x150
mov edx, dword [ebp - 0xa54]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa58], eax
cmp dword [ebp - 0xa58], 0xffffffff
je 0x40517c
mov eax, dword [ebp - 0xa58]
and eax, 2
je 0x40517c
mov dword [ebp - 0x17a4], 1
jmp 0x405186
mov dword [ebp - 0x17a4], 0
mov ecx, dword [ebp - 0x17a4]
mov dword [0x4128fc], ecx
jmp 0x40550c
mov dx, word [0x412940]
mov word [ebp - 0x1268], dx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1266]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x412948]
mov word [ebp - 0x1060], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x105e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1064], 1
mov dword [ebp - 0x126c], 0
lea ecx, [ebp - 0x1060]
push ecx
lea edx, [ebp - 0x1268]
push edx
push 0x4141a0
call fcn.00407640
add esp, 0xc
lea eax, [ebp - 0x1268]
push eax
mov ecx, dword [ebp - 0x126c]
push ecx
push 0x14c
mov edx, dword [ebp - 0xa54]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0x126c], eax
cmp dword [ebp - 0x126c], 0xffffffff
je 0x405309
mov ax, word [0x412950]
mov word [ebp - 0x1470], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x146e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1474], 0
mov ecx, dword [ebp - 0x126c]
cmp ecx, dword [ebp - 0xa5c]
jge 0x405271
jmp 0x405309
mov edx, dword [ebp - 0x126c]
mov dword [ebp - 0xa5c], edx
lea eax, [ebp - 0x1470]
push eax
mov ecx, dword [ebp - 0xa5c]
push ecx
push 0x148
mov edx, dword [ebp - 0xa54]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0x411660
lea eax, [ebp - 0x1470]
push eax
call sub.MSVCR71.dll_wcsstr
add esp, 8
mov dword [ebp - 0x1474], eax
cmp dword [ebp - 0x1474], 0
je 0x4052cb
mov ecx, dword [ebp - 0x1474]
mov word [ecx], 0
lea edx, [ebp - 0x1268]
push edx
lea eax, [ebp - 0x1470]
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4bc]
test eax, eax
jne 0x4052f5
mov dword [ebp - 0x1064], 0
jmp 0x405309
mov edx, dword [ebp - 0xa5c]
add edx, 1
mov dword [ebp - 0xa5c], edx
jmp 0x405203
cmp dword [ebp - 0x1064], 0
je 0x4054ac
mov dword [ebp - 0x1478], 0
lea eax, [ebp - 0x1268]
push eax
mov ecx, dword [0x4132dc]
push ecx
call fcn.004089d0
add esp, 8
mov dword [ebp - 0x1478], eax
cmp dword [ebp - 0x1478], 0
je 0x4054ac
mov dword [ebp - 0x1480], 0
mov dword [ebp - 0x147c], 0
push 0x4141a0
mov edx, dword [ebp - 0x1478]
push edx
call sub.MSVCR71.dll_wcsstr
add esp, 8
mov dword [ebp - 0x1480], eax
cmp dword [ebp - 0x1480], 0
je 0x40549f
mov dword [ebp - 0x1484], 0xffffffff
push 0x411664
mov eax, dword [ebp - 0x1480]
push eax
call sub.MSVCR71.dll_wcsstr
add esp, 8
mov dword [ebp - 0x1480], eax
cmp dword [ebp - 0x1480], 0
je 0x40544a
push str.Clustered:
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x1480]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x1480], edx
mov eax, dword [ebp - 0x1480]
movzx ecx, word [eax]
test ecx, ecx
je 0x405402
mov edx, dword [ebp - 0x147c]
mov eax, dword [ebp - 0x1480]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x3b
je 0x405402
mov edx, dword [ebp - 0x147c]
add edx, 1
mov dword [ebp - 0x147c], edx
jmp 0x4053cf
mov eax, dword [ebp - 0x147c]
mov ecx, dword [ebp - 0x1480]
movzx edx, word [ecx + eax*2]
cmp edx, 0x3b
jne 0x40543e
mov eax, dword [ebp - 0x147c]
push eax
push 0x411694
mov ecx, dword [ebp - 0x1480]
push ecx
call sub.MSVCR71.dll__wcsnicmp
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [0x4128fc], eax
jmp 0x405448
mov dword [0x4128fc], 0
jmp 0x405454
mov dword [0x4128fc], 0
push 0x4141a0
push 0
push 0x143
push 0x3e8
mov edx, dword [0x4132dc]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
mov dword [ebp - 0x1484], eax
xor eax, eax
cmp dword [0x4128fc], 0
setne al
inc eax
push eax
mov ecx, dword [ebp - 0x1484]
push ecx
push 0x151
mov edx, dword [ebp - 0xa54]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov eax, dword [ebp - 0x1478]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x1064], 0
jne 0x40550c
mov dword [ebp - 0x1488], 0xffffffff
mov dword [0x4128fc], 0
push 0x4141a0
push 0
push 0x143
push 0x3e8
mov ecx, dword [0x4132dc]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
mov dword [ebp - 0x1488], eax
push 0
mov edx, dword [ebp - 0x1488]
push edx
push 0x151
push 0x3e8
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
cmp dword [ebp + 0xc], 1
jne 0x4055d3
push 0
push 0
push 0x147
mov ecx, dword [ebp - 0xa54]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa5c], eax
cmp dword [ebp - 0xa5c], 0xffffffff
je 0x4055d3
push 0xffffffffffffffff
mov edx, dword [0x4133e8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4141a0
mov eax, dword [ebp - 0xa5c]
push eax
push 0x148
mov ecx, dword [ebp - 0xa54]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0
push 1
mov edx, dword [0x4133e8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
mov eax, dword [ebp - 0xa5c]
push eax
push 0x150
mov ecx, dword [ebp - 0xa54]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa58], eax
cmp dword [ebp - 0xa58], 0xffffffff
je 0x4055be
mov edx, dword [ebp - 0xa58]
and edx, 2
je 0x4055be
mov dword [ebp - 0x17a8], 1
jmp 0x4055c8
mov dword [ebp - 0x17a8], 0
mov eax, dword [ebp - 0x17a8]
mov dword [0x4128fc], eax
push 0
call fcn.00403030
add esp, 4
cmp dword [ebp - 0xa58], 0
jne 0x40563f
mov cx, word [0x412958]
mov word [ebp - 0x1788], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1786]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x412960]
mov word [ebp - 0x1588], dx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x1586]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1588]
push eax
lea ecx, [ebp - 0x1788]
push ecx
push 0x4141a0
call fcn.00407640
add esp, 0xc
push 0
push 0x75
call fcn.00406dd0
add esp, 8
push 0
push 0x413040
mov edx, dword [0x4132dc]
push edx
call fcn.00408c20
add esp, 0xc
mov dword [0x4128e0], 0
mov dword [0x4113c8], 6
jmp 0x4056a8
cmp dword [ebp + 0xc], 0
jne 0x4056a8
push 0
call fcn.00403030
add esp, 4
push 0
push 0x75
call fcn.00406dd0
add esp, 8
push 0
push 0x413040
mov eax, dword [0x4132dc]
push eax
call fcn.00408c20
add esp, 0xc
cmp dword [ebp + 8], 0x1388
jb 0x40570d
cmp dword [ebp + 8], 0x157c
ja 0x40570d
push 0
mov ecx, dword [ebp + 8]
sub ecx, 0x1388
push ecx
push 0x14e
push 0x3e9
mov edx, dword [0x4132dc]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0x3e9
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x103e9
push 0x111
mov ecx, dword [0x4132dc]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
xor eax, eax
mov ecx, dword [ebp - 0x14]
call fcn.0040cd05
pop edi
mov esp, ebp
pop ebp
ret