Function at 0x4379b0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452bd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa3c
mov eax, dword [0x462454]
mov dword [ebp - 0x1c], eax
push edi
mov dword [ebp - 0xa40], ecx
mov ecx, dword [ebp - 0xa40]
call fcn.00436960
test eax, eax
jne 0x4379f3
jmp 0x437d49
mov ecx, dword [ebp - 0xa40]
call fcn.00439520
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x437a0c
jmp 0x437d49
mov eax, dword [ebp - 0xa40]
cmp dword [eax + 0x1800], 0
jne 0x437a9f
push 0x178
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xa3c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa3c], 0
je 0x437a5c
mov ecx, dword [ebp - 0xa40]
push ecx
mov ecx, dword [ebp - 0xa3c]
call fcn.0043c560
mov dword [ebp - 0xa44], eax
jmp 0x437a66
mov dword [ebp - 0xa44], 0
mov edx, dword [ebp - 0xa44]
mov dword [ebp - 0xa38], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa40]
mov ecx, dword [ebp - 0xa38]
mov dword [eax + 0x1800], ecx
mov edx, dword [ebp - 0xa40]
cmp dword [edx + 0x1800], 0
jne 0x437a9f
jmp 0x437d49
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax + 0x1800]
call fcn.0043cf20
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
jge 0x437ae3
push 0
mov ecx, dword [ebp - 0xa40]
call fcn.004383a0
push 0x10
push 0x13ce
mov ecx, dword [ebp - 0xa40]
call fcn.004393a0
jmp 0x437d49
push 1
mov ecx, dword [ebp - 0xa40]
add ecx, 0x78
push ecx
mov ecx, dword [ebp - 0xa40]
call fcn.00437db0
movzx edx, al
test edx, edx
jne 0x437b1e
mov ecx, dword [ebp - 0xa40]
call fcn.00437d70
push 0
mov ecx, dword [ebp - 0xa40]
call fcn.004383a0
jmp 0x437d49
mov word [ebp - 0xa2c], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x22c], 0
mov ecx, 0x83
xor eax, eax
lea edi, [ebp - 0x22a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2b0
push ecx
call dword [sym.imp.OBJMGR.dll_ObjMgr_MungeQuotes]
add esp, 8
mov edx, dword [ebp - 0xa40]
movzx eax, word [edx + 0xab0]
cmp eax, 7
jl 0x437b8a
mov dword [ebp - 0xa48], str.select_id_from_dbo.sysobjects_where_name__N_s
jmp 0x437b94
mov dword [ebp - 0xa48], str.select_id_from_dbo.sysobjects_where_name___s
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0xa48]
push edx
push 0x400
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0xa2c]
push ecx
mov edx, dword [ebp - 0xa40]
add edx, 0x78
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x437c22
mov eax, dword [ebp - 0xa40]
add eax, 0x78
push eax
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x437c22
mov dword [ebp - 0xa34], 0
lea ecx, [ebp - 0xa34]
push ecx
push 4
mov edx, dword [ebp - 0x18]
add edx, 0x80
push edx
push 4
push 1
mov eax, dword [ebp - 0xa40]
add eax, 0x78
push eax
call dword [sym.imp.SQLSVC.dll_QSQLColumnData]
add esp, 0x18
mov ecx, dword [ebp - 0xa40]
movzx edx, word [ecx + 0x18e4]
test edx, edx
je 0x437c52
mov eax, dword [ebp - 0xa40]
add eax, 0x18e4
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x78
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
mov edx, dword [ebp - 0xa40]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xa40]
mov dword [ecx + 0x88], 0
push str.dbcc_freeproccache
mov edx, dword [ebp - 0xa40]
add edx, 0x78
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
mov eax, dword [ebp - 0xa40]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x88], ecx
push 2
mov ecx, dword [ebp - 0xa40]
call fcn.00438140
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
jge 0x437cc6
push 0
mov ecx, dword [ebp - 0xa40]
call fcn.004383a0
jmp 0x437d49
push 0
mov ecx, dword [ebp - 0xa40]
call fcn.00438140
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
jge 0x437cf1
push 0
mov ecx, dword [ebp - 0xa40]
call fcn.004383a0
jmp 0x437d49
push 0
push 0
push 0x114e
mov ecx, dword [ebp - 0xa40]
call fcn.004386f0
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
mov ecx, dword [ebp - 0xa40]
call fcn.0043c500
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0xa40]
push eax
push 0x4387f0
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0xa40]
mov dword [ecx + 0x17f8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0044fa3b
pop edi
mov esp, ebp
pop ebp
ret