Function at 0x430d6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446c19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa38
push edi
mov dword [ebp - 0xa3c], ecx
mov ecx, dword [ebp - 0xa3c]
call fcn.0042fe6f
test eax, eax
jne 0x430da5
jmp 0x431119
mov ecx, dword [ebp - 0xa3c]
call fcn.00432696
mov dword [ebp - 0xa2c], eax
cmp dword [ebp - 0xa2c], 0
jne 0x430dc4
jmp 0x431119
mov eax, dword [ebp - 0xa3c]
cmp dword [eax + 0x1800], 0
jne 0x430e57
push 0x170
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xa38], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa38], 0
je 0x430e14
mov ecx, dword [ebp - 0xa3c]
push ecx
mov ecx, dword [ebp - 0xa38]
call fcn.004353cc
mov dword [ebp - 0xa40], eax
jmp 0x430e1e
mov dword [ebp - 0xa40], 0
mov edx, dword [ebp - 0xa40]
mov dword [ebp - 0xa34], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [ebp - 0xa34]
mov dword [eax + 0x1800], ecx
mov edx, dword [ebp - 0xa3c]
cmp dword [edx + 0x1800], 0
jne 0x430e57
jmp 0x431119
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [eax + 0x1800]
call fcn.00435c7c
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
jge 0x430e9b
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.0043160d
push 0x10
push 0x13ce
mov ecx, dword [ebp - 0xa3c]
call fcn.0043254a
jmp 0x431119
push 1
mov ecx, dword [ebp - 0xa3c]
add ecx, 0x78
push ecx
mov ecx, dword [ebp - 0xa3c]
call fcn.0043115e
and eax, 0xff
test eax, eax
jne 0x430ed8
mov ecx, dword [ebp - 0xa3c]
call fcn.00431128
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.0043160d
jmp 0x431119
mov word [ebp - 0x80c], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x80a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0xa20], 0
mov ecx, 0x83
xor eax, eax
lea edi, [ebp - 0xa1e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0xa20]
push edx
mov eax, dword [ebp - 0xa2c]
add eax, 0x2b0
push eax
call dword [0x454a3c]
add esp, 8
mov ecx, dword [ebp - 0xa3c]
xor edx, edx
mov dx, word [ecx + 0xab0]
cmp edx, 7
jl 0x430f48
mov dword [ebp - 0xa44], str.select_id_from_dbo.sysobjects_where_name__N_s
jmp 0x430f52
mov dword [ebp - 0xa44], str.select_id_from_dbo.sysobjects_where_name___s
lea eax, [ebp - 0xa20]
push eax
mov ecx, dword [ebp - 0xa44]
push ecx
push 0x400
lea edx, [ebp - 0x80c]
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x80c]
push eax
mov ecx, dword [ebp - 0xa3c]
add ecx, 0x78
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x430fe3
mov edx, dword [ebp - 0xa3c]
add edx, 0x78
push edx
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x430fe3
mov dword [ebp - 0xa30], 0
lea eax, [ebp - 0xa30]
push eax
push 4
mov ecx, dword [ebp - 0xa2c]
add ecx, 0x80
push ecx
push 4
push 1
mov edx, dword [ebp - 0xa3c]
add edx, 0x78
push edx
call dword [sym.imp.SQLSVC.dll_QSQLColumnData]
add esp, 0x18
mov eax, dword [ebp - 0xa3c]
xor ecx, ecx
mov cx, word [eax + 0x18e4]
test ecx, ecx
je 0x431016
mov edx, dword [ebp - 0xa3c]
add edx, 0x18e4
push edx
mov eax, dword [ebp - 0xa3c]
add eax, 0x78
push eax
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
mov ecx, dword [ebp - 0xa3c]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 0xa28], edx
mov eax, dword [ebp - 0xa3c]
mov dword [eax + 0x88], 0
push str.dbcc_freeproccache
mov ecx, dword [ebp - 0xa3c]
add ecx, 0x78
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
mov edx, dword [ebp - 0xa3c]
mov eax, dword [ebp - 0xa28]
mov dword [edx + 0x88], eax
push 2
mov ecx, dword [ebp - 0xa3c]
call fcn.00431494
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
jge 0x431090
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.0043160d
jmp 0x431119
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.00431494
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
jge 0x4310bb
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.0043160d
jmp 0x431119
push 0
push 0
push 0x114e
mov ecx, dword [ebp - 0xa3c]
call fcn.00431914
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov ecx, dword [ebp - 0xa3c]
call fcn.0043537c
mov dword [ebp - 0x810], 0
lea ecx, [ebp - 0x810]
push ecx
push 0
mov edx, dword [ebp - 0xa3c]
push edx
push 0x4319d7
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0xa3c]
mov dword [ecx + 0x17f8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret