Function at 0x23675dcf
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.2367b890
mov eax, dword [esi + 0x78]
xor cx, cx
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], edi
cmp cx, word [eax + 0x24]
lea ecx, [ebp - 0x2c]
sbb ebx, ebx
neg ebx
mov dword [ebp - 0x10], ebx
call fcn.2367161f
test eax, eax
jne 0x2367eaab
cmp word [esi + 0x68], di
je 0x2367eabb
mov eax, dword [ebp + 8]
and eax, 0x60
cmp eax, dword [ebp + 8]
jne 0x2367eac7
push dword [esi + 0x54]
call fcn.23678ec5
test eax, eax
pop ecx
jne 0x2367eadb
test byte [esi + 0x8c], 1
jne 0x2367edb4
mov ecx, dword [esi + 0x78]
call fcn.2367d0c5
test eax, eax
jne 0x2367edb4
mov ecx, dword [esi + 0x78]
lea eax, [ebp - 0x14]
push eax
push esi
mov word [esi + 0x8c], di
call fcn.23678f23
cmp word [ebp - 0x14], di
jne 0x2367eae4
mov ecx, dword [esi + 0x44]
push 0x3ed
call fcn.23671018
mov ecx, dword [esi + 0x78]
push edi
push edi
call fcn.2367d11d
test byte [ebp + 8], 0x20
jne 0x2367eb0d
test byte [ebp + 8], 0x40
jne 0x2367eb19
mov dword [esi + 0x6c], edi
mov ecx, esi
call fcn.23675f4c
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x2367eb25
cmp dword [0x236a962c], edi
jne 0x2367eb2e
cmp ebx, edi
jne 0x2367ebc6
mov eax, dword [esi + 0x9c]
push eax
push edi
push dword [esi + 0x58]
call sub.ODBC32.dll_SQLSetStmtOption
mov eax, dword [esi + 0x78]
test byte [eax + 0xd1], 0x80
je 0x23675f00
cmp dword [ebp - 0xc], edi
jne 0x2367ebd9
cmp ebx, edi
jne 0x2367ebcd
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x2367ebf9
push esi
mov word [esi + 0x8c], 0x8001
call fcn.23675fa3
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.236761a1
push edi
push edi
push edi
mov ecx, 0x236a9620
mov word [esi + 0x8c], di
call fcn.236725b9
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x2c]
call fcn.2367cba2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 0x2c]
call fcn.2367ba78
mov dword [ebp + 8], eax
jmp 0x23675e24
mov dword [ebp + 8], 0x40
jmp 0x23675e24
mov edx, dword [esi]
mov eax, 0x5c7c
push eax
push eax
push edi
mov ecx, esi
call dword [edx + 0x28]
mov dword [ebp - 4], eax
jmp 0x2367eaeb
mov edx, dword [esi]
mov eax, 0x5c7d
jmp 0x2367eace
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x78]
cmp ecx, edi
je 0x23675f38
push dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp - 4], edi
setl al
push eax
push esi
call fcn.23676216
jmp 0x23675f38
mov dword [ebp - 0xc], 1
jmp 0x23675ea0
mov dword [esi + 0x6c], 1
jmp 0x23675ead
mov dword [ebp - 0x18], 1
jmp 0x2367eaeb
push dword [esi + 0x54]
call fcn.2367cde1
cmp ax, 2
pop ecx
jne 0x23675ecb
mov eax, dword [esi + 0x78]
push 1
push dword [eax + 0x78]
call fcn.2367185d
pop ecx
mov ebx, eax
pop ecx
push 1
push 0x236ab748
call fcn.2367185d
pop ecx
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x78]
pop ecx
lea edx, [ebp - 0x18]
mov dword [esi + 0xbc], esi
mov ecx, dword [eax]
push edx
push 0x236a2830
push eax
mov dword [esi + 0x9c], edi
call dword [ecx]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x2367ebb0
push dword [esi + 0xbc]
mov ecx, dword [esi + 0x44]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.236958de
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x2367ebb0
mov dword [esi + 0xb8], 1
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push dword [ebp + 8]
call ebx
mov ebx, dword [ebp - 0x10]
jmp 0x23675ecb
xor eax, eax
jmp 0x23675ed9
cmp dword [esi + 0x9c], edi
jle 0x23675f00
lea eax, [ebp - 0x1c]
push eax
push 4
push esi
push fcn.23675fa3
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
jmp 0x23675f00
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov ebx, eax
mov word [esi + 0x8c], 1
shl ebx, 0xa
cmp eax, edi
mov dword [ebp - 0x18], ebx
jle 0x2367ec4c
cmp dword [ebp - 0xc], edi
je 0x2367ec58
cmp dword [ebp - 0x10], edi
je 0x2367ec4c
push ebx
lea ecx, [esi + 0xb0]
call fcn.23687115
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
or byte [esi + 0x8c], 0x10
mov dword [esi + 0xa0], eax
cmp dword [ebp - 0xc], edi
je 0x2367ec58
or byte [esi + 0x8c], 0x20
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0xc], edi
jne 0x2367ed71
cmp ebx, edi
jle 0x2367ec79
cmp dword [ebp - 0x10], edi
jne 0x2367ec7c
or ebx, 0xffffffff
xor eax, eax
cmp dword [esi + 0xb8], edi
setg al
push eax
push ebx
push dword [ebp - 8]
call fcn.23687977
add esp, 0xc
mov ebx, 0x102
cmp eax, ebx
jne 0x2367ed04
mov ecx, esi
call fcn.23686049
cmp ax, di
mov dword [ebp - 0x14], eax
je 0x2367ecfc
push dword [esi + 0x58]
or dword [ebp + 8], 0xffffffff
call sub.ODBC32.dll_SQLCancel
cmp ax, di
je 0x2367ecc3
cmp ax, 1
jne 0x2367ecca
or byte [esi + 0x8c], 8
cmp ax, di
je 0x2367ece0
push edi
push 0xffffffffffffffff
push dword [esi + 0x58]
mov ecx, esi
push edi
push 1
push eax
call fcn.23678cb7
xor eax, eax
cmp dword [esi + 0xb8], edi
setg al
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.23687977
add esp, 0xc
jmp 0x2367ec99
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
jmp 0x2367ece0
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
mov ecx, esi
call fcn.236761a1
mov word [esi + 0x8c], di
cmp dword [ebp - 4], edi
jge 0x2367ed66
call fcn.23678596
mov ebx, eax
mov dword [ebp + 8], ebx
call fcn.23671000
cmp ebx, edi
je 0x2367ed61
add ebx, 0x208
cmp dword [ebx], edi
je 0x2367ed61
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
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x23675f38
or word [esi + 0x8c], 0x8000
xor eax, eax
cmp dword [esi + 0xb8], edi
setg al
push eax
push 0x100
push dword [ebp - 8]
call fcn.23687977
add esp, 0xc
test eax, eax
jne 0x2367eda6
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
jmp 0x2367ed0b
and word [esi + 0x8c], 0xfff
jmp 0x2367ed2c
mov edx, dword [esi]
mov eax, 0x5c54
jmp 0x2367eace