Function at 0x4087bb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e7c
call fcn.0040c300
push edi
mov word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x450], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x44e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x248], 0
mov eax, 0x412220
test eax, eax
je 0x408827
xor ecx, ecx
mov cx, word [0x412220]
test ecx, ecx
jne 0x40882c
jmp 0x408feb
mov dword [0x410974], 1
push 0
push 0
push 0x14b
push 0x3e9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov eax, dword [ebp + 0xc]
add eax, 0x278
push eax
call fcn.0040b0c9
add esp, 4
lea ecx, [ebp - 0x450]
push ecx
lea edx, [ebp - 0x208]
push edx
push 0x412220
call fcn.00407227
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x408aae
mov dword [ebp - 0x868], 0x104
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x65c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__GetComputerName_8]
lea edx, [ebp - 0x65c]
push edx
lea eax, [ebp - 0x65c]
push eax
call fcn.00409178
add esp, 8
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x864]
push edx
call fcn.00409178
add esp, 8
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x65c]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4bc]
test eax, eax
jne 0x408939
push 0xa
push 0x410
lea eax, [ebp - 0x230]
push eax
call fcn.0040ae70
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x450]
push ecx
push 0
call fcn.00409b90
add esp, 0x10
lea edx, [ebp - 0x230]
mov dword [ebp - 0x210], edx
jmp 0x408aa9
cmp dword [0x41264c], 0
jne 0x4089e5
push 0x412220
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
je 0x4089e5
mov dword [0x412654], 1
push 0xffffffffffffffff
mov ecx, dword [0x411468]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 1
mov edx, dword [0x411468]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
push 0x75
call fcn.004069ed
add esp, 8
call fcn.0040576f
push 1
call fcn.00402d8d
add esp, 4
push 0x412220
mov eax, dword [ebp - 0x454]
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4c0]
mov edx, dword [ebp - 0x454]
push edx
push 0
push 0x408ff0
call sub.MSVCRT.dll__beginthread
add esp, 0xc
jmp 0x408feb
push 0xa
push 0x410
lea eax, [ebp - 0x230]
push eax
call fcn.0040ae70
add esp, 0xc
push 0x40fd48
lea ecx, [ebp - 0xc78]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4c0]
push 0x40fd60
lea eax, [ebp - 0xa70]
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4c0]
push 0
lea edx, [ebp - 0xc78]
push edx
push 0x208
push 1
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0040b2f4
add esp, 0x18
push 0x40fd78
lea ecx, [ebp - 0xc78]
push ecx
mov edx, dword [0x41109c]
call dword [edx + 0x4c0]
push 0x40fd98
lea eax, [ebp - 0xa70]
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4c0]
push 0
lea edx, [ebp - 0xc78]
push edx
push 0x208
push 1
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0040b2f4
add esp, 0x18
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x210], ecx
jmp 0x408ba3
mov edx, dword [ebp + 0x10]
add edx, 4
mov dword [ebp - 0x210], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x408ba3
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0xffffffff
je 0x408ba3
mov word [ebp - 0x1e78], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1e76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x1478], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1476]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x1678], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1676]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x71
call fcn.004069ed
add esp, 8
push 0x100
lea edx, [ebp - 0x1678]
push edx
push 0x4d
mov eax, dword [0x411478]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
lea ecx, [ebp - 0x1e78]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.00406602
add esp, 8
lea ecx, [ebp - 0x1e78]
push ecx
lea edx, [ebp - 0x1678]
push edx
lea eax, [ebp - 0x1478]
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4cc]
add esp, 0xc
push 0x10
push 0x412440
lea edx, [ebp - 0x1478]
push edx
mov eax, dword [0x41135c]
push eax
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
mov dword [0x410974], 0
cmp dword [0x412654], 0
je 0x408bc5
mov dword [0x412654], 0
call fcn.0040576f
push 0
call fcn.00402d8d
add esp, 4
push 0x20
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x278
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x248], 0
push 0x3e9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x234], 0
jmp 0x408c21
mov ecx, dword [ebp - 0x234]
add ecx, 1
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x234]
cmp eax, dword [edx + 0x280]
jge 0x408d02
mov dword [0x410974], 1
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x278
push edx
call fcn.0040b149
add esp, 8
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x408cfd
mov eax, dword [ebp - 0x244]
add eax, 0x208
push eax
push 0
push 0x143
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x244]
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x244]
add ecx, 0x208
push ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.SQLUNIRL.dll__GetTextExtentPoint32_16]
mov eax, dword [ebp - 0x248]
cmp eax, dword [ebp - 0x23c]
jle 0x408ce5
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x1e7c], ecx
jmp 0x408cf1
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x1e7c], edx
mov eax, dword [ebp - 0x1e7c]
mov dword [ebp - 0x248], eax
jmp 0x408c12
push 0
mov ecx, dword [ebp - 0x248]
push ecx
push 0x160
push 0x3e9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendDlgItemMessage_20]
mov eax, dword [ebp - 0x240]
push eax
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [edx + 0x10]
test eax, eax
jne 0x408ebf
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
je 0x408dda
push 0
push 0
push 0x14e
push 0x3e9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0xffffffffffffffff
mov eax, dword [0x411468]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x278
push ecx
call fcn.0040b149
add esp, 8
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x408dc4
mov edx, dword [ebp - 0x244]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4c0]
push 0
push 1
mov edx, dword [0x411468]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x408e96
push 0xffffffffffffffff
mov eax, dword [0x411468]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx + 0x10]
test edx, edx
jne 0x408e0d
push 0x40fdbc
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4c0]
push 0
push 1
mov edx, dword [0x411468]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
push 0xffffffffffffffff
push 0x14c
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x408e77
push 0
mov edx, dword [ebp - 0x20c]
push edx
push 0x14e
push 0x3e9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
jmp 0x408e96
push 0
push 0
push 0x14e
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0x3e9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x103e9
push 0x111
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
jmp 0x408fd4
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx + 0x10]
test edx, edx
jne 0x408ee4
push 0x40fdd4
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [0x41109c]
call dword [ecx + 0x4c0]
push 1
mov edx, dword [ebp + 0xc]
add edx, 0x10
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x278
push eax
call fcn.00407c84
add esp, 0xc
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x408f91
mov ecx, dword [ebp - 0x244]
add ecx, 0x208
push ecx
push 0xffffffffffffffff
push 0x14c
push 0x3e9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x408f70
push 0
mov eax, dword [ebp - 0x20c]
push eax
push 0x14e
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
jmp 0x408f8f
push 0
push 0
push 0x14e
push 0x3e9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
jmp 0x408fb0
push 0
push 0
push 0x14e
push 0x3e9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x103e9
push 0x111
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
call fcn.004061ce
cmp dword [ebp + 0x10], 0
je 0x408feb
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_free
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret