Function at 0x10049653
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.OpenDbConn
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], vtable.CDAOContext.0
mov dword [esp + 0x1c], esi
call fcn.10009750
xor edi, edi
mov ebp, 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x14], vtable.CDAOVARGContext.0
mov word [esp + 0x24], di
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edi
call fcn.100139b0
lea ecx, [esp + 0x64]
call fcn.100139b0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp eax, edi
mov dword [esp + 0x3c], edi
je 0x1004946d
cmp dword [eax + 0x10], 0x25
jl 0x1004947a
push ebp
push edi
push eax
push 0xffff8abf
jmp 0x10049901
mov edx, dword [esp + 0xcc]
push edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xd8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xec]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xf0]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x2c]
mov word [esp + 0x3c], bp
call fcn.100462a0
mov eax, dword [esp + 0x1c]
cmp eax, edi
jl 0x100498c6
mov ecx, dword [esp + 0xdc]
push edi
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0xe8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xfc]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x100]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov dword [eax + 0xc], edx
call fcn.1000a010
mov eax, dword [esp + 0x1c]
cmp eax, edi
jl 0x100498c6
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
push edi
lea eax, [esp + 0x48]
push eax
push 8
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x110]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x114]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov dword [eax + 0xc], edx
call fcn.1000a1d0
mov eax, dword [esp + 0x1c]
cmp eax, edi
jl 0x100498c6
mov eax, dword [esp + 0xc8]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
call ebx
test eax, eax
jne 0x1004958f
lea ecx, [esp + 0x44]
call fcn.100073e0
push eax
call ebx
test eax, eax
jne 0x1004958f
lea esi, [eax + 2]
jmp 0x100495e0
lea ecx, [esp + 0x44]
call fcn.10013c50
test eax, eax
je 0x100495dc
mov ecx, dword [esi + 8]
push edi
push ecx
push ebp
lea edx, [esp + 0x50]
push edx
sub esp, 0xc
mov eax, esp
mov dword [eax], vtable.CDAOContext.0
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], edx
call fcn.10048fd0
push eax
lea ecx, [esp + 0x1c]
call fcn.10005c90
test eax, eax
je 0x100495dc
mov esi, dword [esp + 0x1c]
jmp 0x100498c8
mov esi, dword [esp + 0x28]
test esi, 0x400
lea ecx, [esp + 0x84]
je 0x1004961c
push 0x20
and esi, 0xfbff
call fcn.10013a30
push eax
lea ecx, [esp + 0x68]
call fcn.100470c0
lea ecx, [esp + 0x84]
call fcn.10014290
mov dword [esp + 0x3c], 0xffffffff
jmp 0x10049638
push edi
call fcn.10013a30
push eax
lea ecx, [esp + 0x68]
call fcn.100470c0
lea ecx, [esp + 0x84]
call fcn.10014290
movzx eax, si
cmp eax, 3
ja case.default.0x10049644
jmp dword [eax*4 + 0x10049918]
xor eax, eax
jmp 0x1004965f
mov eax, ebp
jmp 0x1004965f
mov eax, 2
jmp 0x1004965f
mov eax, 3
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x8c], ecx
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x94], edx
call fcn.10013a30
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x214]
lea ecx, [esp + 0x38]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [esp + 0x98]
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [esp + 0xac]
mov dword [ecx + 4], esi
mov esi, dword [esp + 0xb0]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0xb4]
mov dword [ecx + 0xc], esi
mov esi, dword [esp + 0x100]
mov edi, dword [esp + 0xec]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [esp + 0x114]
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x118]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x11c]
mov dword [ecx + 0xc], esi
mov ecx, eax
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x5c], eax
lea eax, [ecx + 0x10]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
mov eax, dword [edx]
mov ecx, dword [eax + 0x54]
push edi
push edx
call ecx
push eax
lea ecx, [esp + 0x18]
call fcn.1000c3f0
lea ecx, [esp + 0xa4]
mov esi, eax
call fcn.10014290
test esi, esi
jne 0x100498c2
test edi, edi
je 0x10049789
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
jne 0x100497b0
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [esp + 0x2c]
push ecx
push eax
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.1000c3f0
test eax, eax
jne 0x100498c2
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 8]
push 0x105
push edi
push 1
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.10054f40
push eax
lea ecx, [esp + 0x18]
call fcn.10005ce0
test eax, eax
jne 0x100498b3
mov edx, dword [esp + 0x10]
mov eax, 0xfffffffe
mov dword [edx + 0x494], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x4a0], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x100]
push edx
push ecx
call fcn.10056e80
push 0x2a4
call fcn.10001450
test eax, eax
je 0x10049836
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 0x1d4]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
mov ecx, eax
call fcn.10012860
jmp 0x10049838
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x28]
push 1
push edx
push ecx
mov ecx, dword [esp + 0x108]
lea edx, [esp + 0x3c]
push edx
push ecx
push 0
push eax
call fcn.10005db0
push eax
lea ecx, [esp + 0x1c]
call fcn.10005c90
test eax, eax
je 0x10049872
mov edx, dword [esp + 0x10]
push edx
call fcn.100573a0
jmp 0x100498b3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
call fcn.1000fe80
push eax
lea ecx, [esp + 0x18]
call fcn.1000c3f0
test eax, eax
je 0x1004989a
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x100498b3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
call fcn.1000b260
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x30]
mov dword [ecx], edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100498c2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
mov esi, eax
lea ecx, [esp + 0x64]
call fcn.10014290
lea ecx, [esp + 0x44]
call fcn.10014290
lea ecx, [esp + 0x14]
call fcn.100097c0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 0x3c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
push ebp
push edi
push ecx
push 0xfffffc15
call fcn.1005a550
cmp eax, edi
je 0x100498c2
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x1c], eax
jmp 0x100498c6