Function at 0x404259
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1790
call fcn.0040c300
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1774], eax
cmp dword [ebp - 0x1774], 0x3fd
ja 0x404302
cmp dword [ebp - 0x1774], 0x3fd
je 0x4047a4
cmp dword [ebp - 0x1774], 0x3e8
ja 0x4042d1
cmp dword [ebp - 0x1774], 0x3e8
je 0x404bb3
cmp dword [ebp - 0x1774], 0x1f4
je 0x404668
cmp dword [ebp - 0x1774], 0x1f5
je 0x404620
jmp 0x405393
cmp dword [ebp - 0x1774], 0x3e9
je 0x404896
cmp dword [ebp - 0x1774], 0x3f4
jbe 0x405393
cmp dword [ebp - 0x1774], 0x3f7
jbe 0x404378
jmp 0x405393
cmp dword [ebp - 0x1774], 0x9c41
ja 0x404343
cmp dword [ebp - 0x1774], 0x9c41
je 0x4045b6
cmp dword [ebp - 0x1774], 0x3ff
je 0x405362
cmp dword [ebp - 0x1774], 0x9c40
je 0x404582
jmp 0x405393
cmp dword [ebp - 0x1774], 0x9c42
je 0x4045fe
cmp dword [ebp - 0x1774], 0x9c49
jbe 0x405393
cmp dword [ebp - 0x1774], 0x9c4c
jbe 0x4046d2
jmp 0x405393
cmp dword [0x412654], 0
je 0x404386
jmp 0x405393
cmp dword [0x410960], 0
je 0x4043c6
push 0x104
push 0x411bc0
push 0x57
mov ecx, dword [0x411478]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x40
push 0x412440
push 0x411bc0
mov edx, dword [0x41135c]
push edx
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
jmp 0x405393
cmp dword [ebp + 0xc], 0
jne 0x40457d
cmp dword [0x40f468], 3
jl 0x40457d
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1778], eax
cmp dword [ebp - 0x1778], 0x3f5
je 0x4044b2
cmp dword [ebp - 0x1778], 0x3f6
je 0x40443f
cmp dword [ebp - 0x1778], 0x3f7
je 0x404421
jmp 0x4044e6
cmp dword [0x40f460], 0x6e
je 0x40443a
cmp dword [0x40f460], 0x72
je 0x40443a
mov dword [ebp - 8], 0
jmp 0x4044e6
cmp dword [0x40f460], 0x6e
je 0x404451
cmp dword [0x40f460], 0x72
jne 0x404485
push 0x104
push 0x411bc0
push 0xb
mov ecx, dword [0x411478]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x40
push 0x412440
push 0x411bc0
mov edx, dword [0x41135c]
push edx
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
jmp 0x4044e6
cmp dword [0x40f460], 0x6f
je 0x4044b0
cmp dword [0x40f460], 0x73
je 0x4044b0
cmp dword [0x40f460], 0x6e
je 0x4044b0
cmp dword [0x40f460], 0x72
je 0x4044b0
mov dword [ebp - 8], 1
jmp 0x4044e6
cmp dword [0x40f460], 0x6f
je 0x4044c4
cmp dword [0x40f460], 0x73
jne 0x4044cd
mov dword [ebp - 8], 3
jmp 0x4044e6
cmp dword [0x40f460], 0x70
je 0x4044e6
cmp dword [0x40f460], 0x74
je 0x4044e6
mov dword [ebp - 8], 2
mov eax, dword [ebp - 8]
push eax
push 0x4110d0
push 0x412220
mov ecx, dword [0x41135c]
push ecx
call fcn.0040582b
add esp, 0x10
test eax, eax
je 0x404558
mov edx, dword [ebp + 8]
mov dword [ebp - 0x177c], edx
cmp dword [ebp - 0x177c], 0x3f5
je 0x40454e
cmp dword [ebp - 0x177c], 0x3f6
je 0x404542
cmp dword [ebp - 0x177c], 0x3f7
je 0x404536
jmp 0x404558
mov dword [0x40f468], 1
jmp 0x404558
mov dword [0x40f468], 2
jmp 0x404558
mov dword [0x40f468], 0
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x3ff
mov ecx, dword [0x41135c]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x405393
cmp dword [0x412650], 0
jne 0x4045b1
push 0
push 0
push 0xbb8
push 2
mov edx, dword [0x41135c]
push edx
call fcn.0040bbc0
add esp, 0x14
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x405393
cmp dword [0x412650], 0
jne 0x4045f9
mov dword [0x412650], 1
push 0
push 0x4013e0
mov ecx, dword [0x41135c]
push ecx
push 0x6a
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov edx, dword [0x411478]
push edx
call fcn.0040203b
add esp, 0x14
mov dword [0x412650], 0
jmp 0x405393
push 0x40f5f0
mov eax, dword [0x41135c]
push eax
call fcn.0040bd8d
add esp, 8
mov dword [0x412648], 0
jmp 0x405393
cmp dword [0x412650], 0
jne 0x404663
mov dword [0x412650], 1
push 0
push 0x4017d2
mov ecx, dword [0x41135c]
push ecx
push 0x6b
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
push eax
mov edx, dword [0x411478]
push edx
call fcn.0040203b
add esp, 0x14
mov dword [0x412650], 0
jmp 0x405393
push 5
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x411358], 0
je 0x40468d
mov ecx, dword [0x411358]
mov dword [ebp - 0x1780], ecx
jmp 0x404699
mov edx, dword [0x41135c]
mov dword [ebp - 0x1780], edx
mov eax, dword [ebp - 0x1780]
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 0x405393
mov dword [ebp - 0xc], 0xffffffff
cmp dword [0x412650], 0
je 0x4046e7
jmp 0x405393
mov dword [0x412650], 1
mov eax, dword [0x40f460]
mov dword [ebp - 0x1784], eax
mov ecx, dword [ebp - 0x1784]
sub ecx, 0x6e
mov dword [ebp - 0x1784], ecx
cmp dword [ebp - 0x1784], 7
ja case.default.0x40471a
mov edx, dword [ebp - 0x1784]
jmp dword [edx*4 + 0x4053ff]
mov eax, dword [ebp + 8]
sub eax, 0x9c4a
mov dword [ebp - 0xc], eax
jmp case.default.0x40471a
cmp dword [ebp + 8], 0x9c4c
jne 0x40473e
mov dword [ebp - 0xc], 2
jmp case.default.0x40471a
cmp dword [ebp + 8], 0x9c4c
jne 0x404752
mov dword [ebp - 0xc], 3
jmp 0x404762
cmp dword [ebp + 8], 0x9c4a
jne 0x404762
mov dword [ebp - 0xc], 0
jmp case.default.0x40471a
cmp dword [ebp + 8], 0x9c4c
je case.default.0x40471a
mov ecx, dword [ebp + 8]
sub ecx, 0x9c4a
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x4110d0
push 0x412220
mov eax, dword [0x41135c]
push eax
call fcn.0040582b
add esp, 0x10
mov dword [0x412650], 0
jmp 0x405393
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 [0x41264c], 0
jne 0x4047e1
mov edx, dword [ebp - 0x10]
push edx
push 0x4110d0
push 0x412220
call fcn.00407044
add esp, 0xc
jmp 0x404891
mov word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x420], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x412220
call fcn.00407227
add esp, 0xc
push 0x411de0
lea edx, [ebp - 0x218]
push edx
mov eax, dword [0x41109c]
call dword [eax + 0x4bc]
test eax, eax
jne 0x404891
push 1
push 0x4110d0
push 0x411338
call fcn.00407c84
add esp, 0xc
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x404891
mov ecx, dword [ebp - 0x10]
push ecx
push 0x4110d0
mov edx, dword [ebp - 0x424]
add edx, 0x208
push edx
push 0x412220
call fcn.00409706
add esp, 0x10
jmp 0x405393
cmp dword [ebp + 0xc], 1
jne 0x404bae
mov dword [ebp - 0x428], 0
push 0xffffffffffffffff
mov eax, dword [0x411468]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov word [0x4110d0], 0
push 0x104
lea ecx, [ebp - 0x634]
push ecx
push 0x3e9
mov edx, dword [0x41135c]
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 - 0x634]
push eax
push 0x208
push 1
push 0
push 0x411338
call fcn.0040b3d0
add esp, 0x1c
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
je 0x404a82
mov ecx, dword [ebp - 0x42c]
push ecx
push 0x4110d0
mov edx, dword [0x41109c]
call dword [edx + 0x4c0]
cmp dword [ebp - 0x42c], 0
je 0x404a7d
mov eax, dword [ebp - 0x42c]
add eax, 0x208
test eax, eax
je 0x404a7d
push 0x40f610
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4bc]
test eax, eax
je 0x40498f
push 0x40f630
mov eax, dword [ebp - 0x42c]
add eax, 0x208
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4bc]
test eax, eax
jne 0x40499b
mov dword [0x410964], 1
jmp 0x4049a5
mov dword [0x410964], 0
push 0x40f654
mov edx, dword [ebp - 0x42c]
add edx, 0x208
push edx
mov eax, dword [0x41109c]
call dword [eax + 0x4bc]
test eax, eax
je 0x4049e2
push 0x40f678
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4bc]
test eax, eax
jne 0x4049ee
mov dword [0x410968], 1
jmp 0x4049f8
mov dword [0x410968], 0
push 0x40f68c
mov eax, dword [ebp - 0x42c]
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4bc]
test eax, eax
jne 0x404a20
mov dword [0x41096c], 1
jmp 0x404a2a
mov dword [0x41096c], 0
push 0x40f698
mov edx, dword [ebp - 0x42c]
add edx, 0x208
push edx
mov eax, dword [0x41109c]
call dword [eax + 0x4bc]
test eax, eax
je 0x404a67
push 0x40f6d0
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4bc]
test eax, eax
jne 0x404a73
mov dword [0x410970], 1
jmp 0x404a7d
mov dword [0x410970], 0
call fcn.004061ce
push 0
push 1
mov eax, dword [0x411468]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp dword [0x41097c], 0
je 0x404abf
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 0x404b8c
cmp dword [0x41264c], 0
jne 0x404ae5
lea edx, [ebp - 0x428]
push edx
push 0x4110d0
push 0x412220
call fcn.00406e0a
add esp, 0xc
test eax, eax
jne 0x404b17
cmp dword [0x41264c], 0
je 0x404b55
push 0x412220
call fcn.00407bd4
add esp, 4
test eax, eax
je 0x404b55
lea eax, [ebp - 0x428]
push eax
push 0x4110d0
call fcn.00409522
add esp, 8
test eax, eax
je 0x404b55
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 - 0x428]
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 0x404b8c
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.004069ed
add esp, 8
mov eax, dword [0x411474]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x40f468], 7
jmp 0x405393
mov cx, word [0x4109a8]
mov word [ebp - 0xa3c], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xa3a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1788], edx
cmp dword [ebp - 0x1788], 1
je 0x404c45
cmp dword [ebp - 0x1788], 4
je 0x404c45
cmp dword [ebp - 0x1788], 5
je 0x404bfb
jmp 0x405360
mov dword [ebp - 0xa40], 0
push 0x3e8
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__GetWindowTextLength_4]
mov dword [ebp - 0xa40], eax
cmp dword [ebp - 0xa40], 0
je 0x404c36
push 1
call fcn.00402d8d
add esp, 4
mov dword [0x410960], 1
jmp 0x405360
mov dword [ebp - 0xa50], 0xffffffff
mov dword [ebp - 0xa44], 0
push 0x3e8
mov ecx, dword [0x41135c]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 0xa48], 0
cmp dword [ebp + 0xc], 4
jne 0x4051f5
cmp dword [0x410960], 0
jne 0x404c93
jmp 0x405360
push 0xffffffffffffffff
mov edx, dword [0x411468]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x103
push 0x412220
mov eax, dword [ebp - 0xa4c]
push eax
call dword [sym.imp.SQLUNIRL.dll__GetWindowText_12]
push 0
push 1
mov ecx, dword [0x411468]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x412220
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x404d95
mov dx, word [0x4109b0]
mov word [ebp - 0xc50], dx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xc4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x4109b8]
mov word [ebp - 0xe50], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xe4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
lea ecx, [ebp - 0xc50]
push ecx
push 0x67
mov edx, dword [0x411478]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0xff
lea eax, [ebp - 0xe50]
push eax
push 1
mov ecx, dword [0x411478]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0
lea edx, [ebp - 0xe50]
push edx
lea eax, [ebp - 0xc50]
push eax
mov ecx, dword [0x41135c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
push 0x4109bc
push 0x412000
mov edx, dword [0x41109c]
call dword [edx + 0x4c0]
mov eax, dword [ebp - 0xa4c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x405360
push 0x412220
push 0x412000
mov ecx, dword [0x41109c]
call dword [ecx + 0x4c0]
push 0x5c
push 0x412000
call sub.MSVCRT.dll_wcsrchr
add esp, 8
mov dword [ebp - 0xa48], eax
cmp dword [ebp - 0xa48], 0
je 0x404dd4
mov edx, dword [ebp - 0xa48]
mov word [edx], 0
push 0x412220
mov eax, dword [ebp - 0xa50]
push eax
push 0x158
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa50], eax
cmp dword [ebp - 0xa50], 0xffffffff
je 0x404e7a
push 0
mov edx, dword [ebp - 0xa50]
push edx
push 0x14e
mov eax, dword [ebp - 0xa4c]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0
mov ecx, dword [ebp - 0xa50]
push ecx
push 0x150
mov edx, dword [ebp - 0xa4c]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa44], eax
cmp dword [ebp - 0xa44], 0xffffffff
je 0x404e5f
mov eax, dword [ebp - 0xa44]
and eax, 2
test eax, eax
je 0x404e5f
mov dword [ebp - 0x178c], 1
jmp 0x404e69
mov dword [ebp - 0x178c], 0
mov ecx, dword [ebp - 0x178c]
mov dword [0x41097c], ecx
jmp 0x4051f5
mov dx, word [0x4109c4]
mov word [ebp - 0x1050], dx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x104e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x4109cc]
mov word [ebp - 0x1258], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1256]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1058], 1
mov dword [ebp - 0x1054], 0
lea ecx, [ebp - 0x1258]
push ecx
lea edx, [ebp - 0x1050]
push edx
push 0x412220
call fcn.00407227
add esp, 0xc
lea eax, [ebp - 0x1050]
push eax
mov ecx, dword [ebp - 0x1054]
push ecx
push 0x14c
mov edx, dword [ebp - 0xa4c]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0x1054], eax
cmp dword [ebp - 0x1054], 0xffffffff
je 0x404fec
mov ax, word [0x4109d4]
mov word [ebp - 0x145c], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x145a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x125c], 0
mov ecx, dword [ebp - 0x1054]
cmp ecx, dword [ebp - 0xa50]
jge 0x404f54
jmp 0x404fec
mov edx, dword [ebp - 0x1054]
mov dword [ebp - 0xa50], edx
lea eax, [ebp - 0x145c]
push eax
mov ecx, dword [ebp - 0xa50]
push ecx
push 0x148
mov edx, dword [ebp - 0xa4c]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0x40f700
lea eax, [ebp - 0x145c]
push eax
call sub.MSVCRT.dll_wcsstr
add esp, 8
mov dword [ebp - 0x125c], eax
cmp dword [ebp - 0x125c], 0
je 0x404fae
mov ecx, dword [ebp - 0x125c]
mov word [ecx], 0
lea edx, [ebp - 0x1050]
push edx
lea eax, [ebp - 0x145c]
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4bc]
test eax, eax
jne 0x404fd8
mov dword [ebp - 0x1058], 0
jmp 0x404fec
mov edx, dword [ebp - 0xa50]
add edx, 1
mov dword [ebp - 0xa50], edx
jmp 0x404ee6
cmp dword [ebp - 0x1058], 0
je 0x405195
mov dword [ebp - 0x1460], 0
lea eax, [ebp - 0x1050]
push eax
mov ecx, dword [0x41135c]
push ecx
call fcn.00408518
add esp, 8
mov dword [ebp - 0x1460], eax
cmp dword [ebp - 0x1460], 0
je 0x405195
mov dword [ebp - 0x1464], 0
mov dword [ebp - 0x1468], 0
push 0x412220
mov edx, dword [ebp - 0x1460]
push edx
call sub.MSVCRT.dll_wcsstr
add esp, 8
mov dword [ebp - 0x1464], eax
cmp dword [ebp - 0x1464], 0
je 0x405188
mov dword [ebp - 0x146c], 0xffffffff
push 0x40f704
mov eax, dword [ebp - 0x1464]
push eax
call sub.MSVCRT.dll_wcsstr
add esp, 8
mov dword [ebp - 0x1464], eax
cmp dword [ebp - 0x1464], 0
je 0x405133
push str.Clustered:
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x1464]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x1464], edx
mov eax, dword [ebp - 0x1464]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x4050e9
mov edx, dword [ebp - 0x1468]
mov eax, dword [ebp - 0x1464]
xor ecx, ecx
mov cx, word [eax + edx*2]
cmp ecx, 0x3b
je 0x4050e9
mov edx, dword [ebp - 0x1468]
add edx, 1
mov dword [ebp - 0x1468], edx
jmp 0x4050b2
mov eax, dword [ebp - 0x1468]
mov ecx, dword [ebp - 0x1464]
xor edx, edx
mov dx, word [ecx + eax*2]
cmp edx, 0x3b
jne 0x405127
mov eax, dword [ebp - 0x1468]
push eax
push 0x40f734
mov ecx, dword [ebp - 0x1464]
push ecx
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [0x41097c], eax
jmp 0x405131
mov dword [0x41097c], 0
jmp 0x40513d
mov dword [0x41097c], 0
push 0x412220
push 0
push 0x143
push 0x3e8
mov edx, dword [0x41135c]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
mov dword [ebp - 0x146c], eax
xor eax, eax
cmp dword [0x41097c], 0
setne al
inc eax
push eax
mov ecx, dword [ebp - 0x146c]
push ecx
push 0x151
mov edx, dword [ebp - 0xa4c]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov eax, dword [ebp - 0x1460]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x1058], 0
jne 0x4051f5
mov dword [ebp - 0x1470], 0xffffffff
mov dword [0x41097c], 0
push 0x412220
push 0
push 0x143
push 0x3e8
mov ecx, dword [0x41135c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
mov dword [ebp - 0x1470], eax
push 0
mov edx, dword [ebp - 0x1470]
push edx
push 0x151
push 0x3e8
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
cmp dword [ebp + 0xc], 1
jne 0x4052be
push 0
push 0
push 0x147
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa50], eax
cmp dword [ebp - 0xa50], 0xffffffff
je 0x4052be
push 0xffffffffffffffff
mov edx, dword [0x411468]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x412220
mov eax, dword [ebp - 0xa50]
push eax
push 0x148
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0
push 1
mov edx, dword [0x411468]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
mov eax, dword [ebp - 0xa50]
push eax
push 0x150
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0xa44], eax
cmp dword [ebp - 0xa44], 0xffffffff
je 0x4052a9
mov edx, dword [ebp - 0xa44]
and edx, 2
test edx, edx
je 0x4052a9
mov dword [ebp - 0x1790], 1
jmp 0x4052b3
mov dword [ebp - 0x1790], 0
mov eax, dword [ebp - 0x1790]
mov dword [0x41097c], eax
push 0
call fcn.00402d8d
add esp, 4
cmp dword [ebp - 0xa44], 0
jne 0x40532a
mov cx, word [0x4109dc]
mov word [ebp - 0x1670], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x166e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x4109e4]
mov word [ebp - 0x1770], dx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x176e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1770]
push eax
lea ecx, [ebp - 0x1670]
push ecx
push 0x412220
call fcn.00407227
add esp, 0xc
push 0
push 0x75
call fcn.004069ed
add esp, 8
push 0
push 0x4110c0
mov edx, dword [0x41135c]
push edx
call fcn.004087bb
add esp, 0xc
mov dword [0x410960], 0
mov dword [0x40f468], 6
jmp 0x405393
cmp dword [ebp + 0xc], 0
jne 0x405393
push 0
call fcn.00402d8d
add esp, 4
push 0
push 0x75
call fcn.004069ed
add esp, 8
push 0
push 0x4110c0
mov eax, dword [0x41135c]
push eax
call fcn.004087bb
add esp, 0xc
cmp dword [ebp + 8], 0x1388
jb 0x4053f8
cmp dword [ebp + 8], 0x157c
ja 0x4053f8
push 0
mov ecx, dword [ebp + 8]
sub ecx, 0x1388
push ecx
push 0x14e
push 0x3e9
mov edx, dword [0x41135c]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0x3e9
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x103e9
push 0x111
mov ecx, dword [0x41135c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret