Function at 0x430f91
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446e69
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.0043008f
test eax, eax
jne 0x430fca
jmp 0x43133e
mov ecx, dword [ebp - 0xa3c]
call fcn.004328c2
mov dword [ebp - 0xa2c], eax
cmp dword [ebp - 0xa2c], 0
jne 0x430fe9
jmp 0x43133e
mov eax, dword [ebp - 0xa3c]
cmp dword [eax + 0x1800], 0
jne 0x43107c
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 0x431039
mov ecx, dword [ebp - 0xa3c]
push ecx
mov ecx, dword [ebp - 0xa38]
call fcn.004355f8
mov dword [ebp - 0xa40], eax
jmp 0x431043
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 0x43107c
jmp 0x43133e
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [eax + 0x1800]
call fcn.00435ea8
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
jge 0x4310c0
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.00431832
push 0x10
push 0x13ce
mov ecx, dword [ebp - 0xa3c]
call fcn.00432776
jmp 0x43133e
push 1
mov ecx, dword [ebp - 0xa3c]
add ecx, 0x78
push ecx
mov ecx, dword [ebp - 0xa3c]
call fcn.00431383
and eax, 0xff
test eax, eax
jne 0x4310fd
mov ecx, dword [ebp - 0xa3c]
call fcn.0043134d
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.00431832
jmp 0x43133e
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 0x43116d
mov dword [ebp - 0xa44], str.select_id_from_dbo.sysobjects_where_name__N_s
jmp 0x431177
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 0x431208
mov edx, dword [ebp - 0xa3c]
add edx, 0x78
push edx
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x431208
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 0x43123b
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.004316b9
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
jge 0x4312b5
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.00431832
jmp 0x43133e
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.004316b9
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
jge 0x4312e0
push 0
mov ecx, dword [ebp - 0xa3c]
call fcn.00431832
jmp 0x43133e
push 0
push 0
push 0x114e
mov ecx, dword [ebp - 0xa3c]
call fcn.00431b39
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov ecx, dword [ebp - 0xa3c]
call fcn.004355a8
mov dword [ebp - 0x810], 0
lea ecx, [ebp - 0x810]
push ecx
push 0
mov edx, dword [ebp - 0xa3c]
push edx
push 0x431bfc
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