Function at 0x408c20
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1e84
call fcn.0040cd20
mov eax, dword [0x412860]
mov dword [ebp - 0x28], eax
push edi
mov word [ebp - 0x448], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x446]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x230], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x238], 0
mov eax, 0x4141a0
test eax, eax
je 0x408c94
movzx ecx, word [0x4141a0]
test ecx, ecx
jne 0x408c99
jmp 0x409414
mov dword [0x4128f4], 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.0040b620
add esp, 4
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x448]
push edx
push 0x4141a0
call fcn.00407640
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x408f06
mov dword [ebp - 0x664], 0x104
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x660]
push ecx
call dword [sym.imp.SQLUNIRL.dll__GetComputerName_8]
lea edx, [ebp - 0x660]
push edx
lea eax, [ebp - 0x660]
push eax
call fcn.004095d0
add esp, 8
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x870]
push edx
call fcn.004095d0
add esp, 8
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x660]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4bc]
test eax, eax
jne 0x408d9d
push 0xa
push 0x410
lea eax, [ebp - 0x24]
push eax
call fcn.0040b3a0
add esp, 0xc
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
call fcn.0040a050
add esp, 0x10
lea edx, [ebp - 0x24]
mov dword [ebp - 0x44c], edx
jmp 0x408f01
cmp dword [0x4145cc], 0
jne 0x408e49
push 0x4141a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call sub.MSVCR71.dll_malloc
add esp, 4
mov dword [ebp - 0x668], eax
cmp dword [ebp - 0x668], 0
je 0x408e49
mov dword [0x4145d4], 1
push 0xffffffffffffffff
mov ecx, dword [0x4133e8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 1
mov edx, dword [0x4133e8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
push 0x75
call fcn.00406dd0
add esp, 8
call fcn.00405aa0
push 1
call fcn.00403030
add esp, 4
push 0x4141a0
mov eax, dword [ebp - 0x668]
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4c0]
mov edx, dword [ebp - 0x668]
push edx
push 0
push 0x409430
call sub.MSVCR71.dll__beginthread
add esp, 0xc
jmp 0x409414
push 0xa
push 0x410
lea eax, [ebp - 0x24]
push eax
call fcn.0040b3a0
add esp, 0xc
push 0x411cb4
lea ecx, [ebp - 0xc80]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4c0]
push 0x411ccc
lea eax, [ebp - 0xa78]
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4c0]
push 0
lea edx, [ebp - 0xc80]
push edx
push 0x208
push 1
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0040b880
add esp, 0x18
push 0x411ce4
lea ecx, [ebp - 0xc80]
push ecx
mov edx, dword [0x41301c]
call dword [edx + 0x4c0]
push 0x411d04
lea eax, [ebp - 0xa78]
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4c0]
push 0
lea edx, [ebp - 0xc80]
push edx
push 0x208
push 1
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0040b880
add esp, 0x18
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44c], ecx
jmp 0x408ffb
mov edx, dword [ebp + 0x10]
add edx, 4
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x408ffb
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0xffffffff
je 0x408ffb
mov word [ebp - 0x1680], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x167e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x1e80], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1e7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0xe80], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xe7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x71
call fcn.00406dd0
add esp, 8
push 0x100
lea edx, [ebp - 0xe80]
push edx
push 0x4d
mov eax, dword [0x4133f8]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
lea ecx, [ebp - 0x1680]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.00406980
add esp, 8
lea ecx, [ebp - 0x1680]
push ecx
lea edx, [ebp - 0xe80]
push edx
lea eax, [ebp - 0x1e80]
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4cc]
add esp, 0xc
push 0x10
push 0x4143c0
lea edx, [ebp - 0x1e80]
push edx
mov eax, dword [0x4132dc]
push eax
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
mov dword [0x4128f4], 0
cmp dword [0x4145d4], 0
je 0x40901d
mov dword [0x4145d4], 0
call fcn.00405aa0
push 0
call fcn.00403030
add esp, 4
push 0x20
mov ecx, dword [ebp - 0x44c]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x278
push edx
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x238], 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 - 0x454], eax
mov dword [ebp - 0x234], 0
jmp 0x409079
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 0x40914b
mov dword [0x4128f4], 1
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x278
push edx
call fcn.0040b6b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409146
mov eax, dword [ebp - 4]
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 - 0x240]
push edx
mov eax, dword [ebp - 4]
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x208
push ecx
mov edx, dword [ebp - 0x454]
push edx
call dword [sym.imp.SQLUNIRL.dll__GetTextExtentPoint32_16]
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x240]
jle 0x40912e
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x1e84], ecx
jmp 0x40913a
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x1e84], edx
mov eax, dword [ebp - 0x1e84]
mov dword [ebp - 0x238], eax
jmp 0x40906a
push 0
mov ecx, dword [ebp - 0x238]
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 - 0x454]
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]
movzx eax, word [edx + 0x10]
test eax, eax
jne 0x4092f7
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
je 0x409214
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 [0x4133e8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x278
push ecx
call fcn.0040b6b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4091fe
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4c0]
push 0
push 1
mov edx, dword [0x4133e8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x4092ce
push 0xffffffffffffffff
mov eax, dword [0x4133e8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x10]
test edx, edx
jne 0x409245
push 0x411d28
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [0x41301c]
call dword [ecx + 0x4c0]
push 0
push 1
mov edx, dword [0x4133e8]
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 - 0x450], eax
cmp dword [ebp - 0x450], 0xffffffff
je 0x4092af
push 0
mov edx, dword [ebp - 0x450]
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 0x4092ce
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 0x4093fd
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x10]
test edx, edx
jne 0x40931a
push 0x411d40
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [0x41301c]
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.004080d0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4093ba
mov ecx, dword [ebp - 4]
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 - 0x450], eax
cmp dword [ebp - 0x450], 0xffffffff
je 0x409399
push 0
mov eax, dword [ebp - 0x450]
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 0x4093b8
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 0x4093d9
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.00406520
cmp dword [ebp + 0x10], 0
je 0x409414
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCR71.dll_free
add esp, 4
mov ecx, dword [ebp - 0x28]
call fcn.0040cd05
pop edi
mov esp, ebp
pop ebp
ret