Function at 0x23678fc9
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
xor cx, cx
mov eax, dword [esi + 0xd4]
mov dword [ebp - 4], edi
push 1
mov dword [ebp - 8], edi
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], edi
cmp cx, word [eax + 0x24]
pop eax
sbb ebx, ebx
neg ebx
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x18], ebx
je 0x2367900d
cmp dword [ebp + 0xc], edi
je 0x2367f61d
mov eax, dword [esi + 0xdc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
cmp eax, 3
mov word [esi + 0xee], ax
jne 0x236790d3
mov dword [ebp - 0xc], 0x236790e8
cmp dword [0x236a962c], edi
jne 0x2367f642
cmp dword [ebp - 0xc], edi
je 0x2367905e
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + 0x78]
test byte [eax + 0xd1], 0x80
je 0x2367905e
cmp dword [ebp + 0xc], edi
jne 0x2367f71e
cmp ebx, edi
jne 0x2367f712
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x2367f74c
cmp dword [ebp - 0xc], edi
je 0x2367f91a
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [esi + 0x124]
push edi
push dword [esi + 0x48]
call sub.ODBC32.dll_SQLSetStmtOption
push esi
mov word [esi + 0xec], 0x8001
call dword [ebp - 0xc]
push dword [ebp + 8]
xor ecx, ecx
cmp eax, edi
mov dword [ebp - 4], eax
sete cl
push ecx
mov ecx, esi
call fcn.23679c87
push edi
push edi
push edi
mov ecx, 0x236a9620
mov word [esi + 0xec], di
call fcn.236725b9
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
cmp eax, 2
jne 0x2367f625
mov dword [ebp - 0xc], 0x2367822b
jmp 0x2367902a
mov dword [ebp + 0xc], edi
jmp 0x23679010
cmp eax, 4
jne 0x2367f636
mov dword [ebp - 0xc], 0x23689399
jmp 0x2367902a
mov word [esi + 0xee], di
jmp 0x2367902a
cmp eax, 3
je 0x2367f650
cmp eax, 5
jne 0x23679036
push dword [esi + 0x74]
call fcn.2367cde1
cmp ax, 2
pop ecx
jne 0x23679036
mov eax, dword [esi + 0xd4]
push 1
pop ebx
mov eax, dword [eax + 0x78]
push ebx
push dword [eax + 0x78]
call fcn.2367185d
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
push ebx
push 0x236ab748
call fcn.2367185d
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xd4]
pop ecx
lea edx, [ebp - 0x1c]
mov eax, dword [eax + 0x78]
pop ecx
push edx
push 0x236a2830
mov ecx, dword [eax]
push eax
mov dword [esi + 0x16c], esi
mov dword [esi + 0x124], edi
call dword [ecx]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x2367f6fa
push dword [esi + 0x16c]
mov ecx, dword [esi + 0x40]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.236958de
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x2367f6fa
mov eax, dword [esi + 0xd4]
mov dword [esi + 0x168], ebx
cmp eax, edi
je 0x2367f6fa
mov ecx, dword [esi + 0x16c]
mov dword [eax + 0xb8], ebx
mov dword [eax + 0xbc], ecx
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push dword [ebp - 0x14]
call ebx
mov ebx, dword [ebp - 0x18]
jmp 0x23679036
cmp dword [esi + 0x124], edi
jle 0x2367905e
cmp dword [ebp + 8], 4
je 0x2367f72e
push edi
push edi
push dword [esi + 0x48]
call sub.ODBC32.dll_SQLSetStmtOption
lea eax, [ebp - 0x20]
push eax
push 4
push esi
push dword [ebp - 0xc]
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
jmp 0x2367905e
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x124]
mov ebx, eax
mov dword [ebp - 0x14], edi
imul ebx, ebx, 0x3e8
cmp dword [ebp + 0xc], edi
mov word [esi + 0xec], 1
je 0x2367f787
cmp eax, edi
mov word [esi + 0xec], 0x21
jle 0x2367f787
mov word [esi + 0xec], 0x31
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebp - 8]
mov dword [esi + 0x140], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 0xc], edi
jne 0x2367f843
cmp ebx, edi
jle 0x2367f836
mov eax, ebx
xor ecx, ecx
cmp dword [esi + 0x168], edi
setg cl
push ecx
push eax
push dword [ebp - 8]
call fcn.23687977
add esp, 0xc
cmp eax, 0x102
jne 0x2367f885
cmp dword [esi + 0x124], edi
jle 0x2367f83e
mov ecx, esi
call fcn.2368a5a2
cmp eax, edi
je 0x2367f83e
mov ax, word [esi + 0xec]
or dword [ebp + 0xc], 0xffffffff
test al, 2
je 0x2367f825
test al, 4
jne 0x2367f825
push dword [esi + 0x48]
or al, 8
mov word [esi + 0xec], ax
call sub.ODBC32.dll_SQLCancel
cmp ax, di
je 0x2367f825
push edi
push 0xffffffffffffffff
push dword [esi + 0x48]
mov ecx, esi
push edi
push 1
push eax
call fcn.23678cb7
xor eax, eax
cmp dword [esi + 0x168], edi
setg al
push eax
push dword [ebp + 0xc]
jmp 0x2367f7c2
or eax, 0xffffffff
jmp 0x2367f7b5
mov dword [ebp + 0xc], ebx
jmp 0x2367f825
test byte [esi + 0xec], 0x10
je 0x2367f858
push ebx
lea ecx, [esi + 0x13c]
call fcn.2368cf71
or word [esi + 0xec], 0x8000
xor eax, eax
cmp dword [esi + 0x168], edi
setg al
push eax
push 0x100
push dword [ebp - 8]
call fcn.23687977
add esp, 0xc
test eax, eax
jne 0x2367f90c
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], edi
je 0x236790c3
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
push edi
push edi
mov ecx, 0x236a9620
call fcn.236725b9
push dword [ebp + 8]
xor eax, eax
cmp dword [ebp - 4], edi
mov ecx, esi
sete al
push eax
call fcn.23679c87
cmp dword [ebp - 4], edi
mov word [esi + 0xec], di
jge 0x236790c3
call fcn.23678596
mov ebx, eax
mov dword [ebp + 8], ebx
call fcn.23671000
cmp ebx, edi
je 0x2367f902
add ebx, 0x208
cmp dword [ebx], edi
je 0x2367f902
mov eax, dword [ebp + 8]
mov edx, dword [esi]
mov ecx, esi
push dword [eax + 0x204]
push eax
call dword [edx + 0x2c]
mov dword [ebx], edi
call fcn.2367100c
jmp 0x236790c3
and word [esi + 0xec], 0x7fff
jmp 0x2367f88c
mov dword [ebp - 4], 0x8007000e
jmp 0x236790c9