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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
test ebp, ebp
je 0x404028
mov al, byte [ecx]
cmp al, 0x2b
jne 0x40402c
xor ebx, ebx
inc ebx
jmp 0x404033
xor ebx, ebx
jmp 0x404033
xor ebx, ebx
cmp al, 0x2d
sete bl
mov eax, 0xe00
and eax, dword [edi + 0x14]
cmp eax, 0x800
jne 0x40405e
lea eax, [ebx + 2]
cmp eax, ebp
ja 0x40405e
cmp byte [ecx + ebx], 0x30
jne 0x40405e
movzx ecx, byte [ebx + ecx + 1]
or ecx, 0x20
cmp ecx, 0x78
jne 0x40405e
mov ebx, eax
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
lea esi, [esp + 0x10]
mov dword [esi + 4], ecx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00402da6
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x404095
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x404095
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
cmp ebp, 0x7fffffff
jae 0x4045b4
cmp ebp, 7
mov dword [esp + 4], esi
ja 0x4040e8
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 7
test ebp, ebp
je 0x4040e0
mov eax, ebp
add eax, ebp
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
call fcn.00409850
add esp, 0xc
lea eax, [esp + ebp*2]
add eax, 0x10
jmp 0x40415f
mov dword [esp + 0x24], 7
mov eax, ebp
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x40410a
mov dword [esp], SQLAllocStmt
mov eax, 0xfffffffe
jmp 0x404126
cmp eax, 0xb
mov ecx, 0xa
cmovae ecx, eax
lea eax, [ecx + ecx]
add eax, 2
cmp ecx, 0x7ff
mov dword [esp], ecx
jb 0x40412e
push eax
call fcn.0040223e
jmp 0x404137
push eax
call fcn.00405864
add esp, 4
mov edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
mov eax, dword [esp]
mov dword [esp + 0x24], eax
lea eax, [ebp + ebp]
push eax
push 0
push edi
call fcn.00409850
add esp, 0xc
lea eax, [edi + ebp*2]
mov edi, dword [esp + 0x6c]
mov esi, edi
mov word [eax], 0
cmp dword [esp + 0x24], 8
jb 0x404175
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov edi, dword [esp + 0x74]
lea eax, [edi + ebp]
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push dword [esp + 4]
push eax
push edi
call dword [edx + 0x2c]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 4]
lea edi, [esp + 0x30]
mov dword [edi + 4], ecx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.004045fe
add esp, 4
mov esi, eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4041c0
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4041c0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x14]
cmp dword [esp + 0x44], 0x10
jb 0x4041d3
mov edi, dword [esp + 0x30]
mov al, byte [edi]
dec al
cmp al, 0x7d
ja 0x4042af
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov word [esp + 8], ax
movsx eax, byte [edi]
mov ecx, eax
dec cl
cmp cl, 0x7d
ja 0x4042af
mov ecx, ebp
sub ecx, ebx
cmp ecx, eax
jbe 0x4042af
movzx ecx, word [esp + 8]
mov dword [esp], ecx
lea esi, [esp + 0x10]
sub ebp, eax
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, ebp
jb 0x4045af
mov edx, dword [esp + 0x24]
cmp edx, ecx
jne 0x404255
sub esp, 0x14
mov al, byte [esp + 0x3c]
mov byte [esp + 4], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp], eax
mov ecx, esi
call fcn.00404d2c
jmp 0x404290
mov dword [esp + 4], edi
inc ecx
mov dword [esp + 0x20], ecx
mov edi, esi
cmp edx, 8
jb 0x404269
mov esi, dword [esp + 0x10]
lea edx, [esi + ebp*2]
lea esi, [esi + ebp*2]
add esi, 2
lea eax, [eax + eax + 2]
push eax
push edx
push esi
call fcn.004092d0
add esp, 0xc
movzx eax, word [esp + 8]
mov word [esi - 2], ax
mov esi, edi
mov edi, dword [esp + 4]
cmp byte [edi + 1], 0
jle 0x404297
inc edi
movsx eax, byte [edi]
mov ecx, eax
dec cl
cmp cl, 0x7d
ja 0x4042af
mov ecx, ebp
sub ecx, ebx
cmp ecx, eax
ja 0x404213
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
mov edi, dword [edx + 0x20]
xor eax, eax
mov ebp, edi
mov dword [esp + 8], ecx
sub ebp, ecx
cmovb ebp, eax
mov ecx, dword [edx + 0x24]
cmp edi, 1
sbb ecx, 0
lea ecx, [esp + 0x64]
cmovl ebp, eax
mov eax, 0x1c0
and eax, dword [edx + 0x14]
cmp eax, 0x40
je 0x404319
cmp eax, 0x100
mov dword [esp + 4], ebx
jne 0x404344
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, eax
mov byte [esp], al
test ebx, ebx
mov dword [esp + 0x2c], edi
je 0x4043db
cmp dword [esp + 0x24], 8
jb 0x4043a6
mov ecx, dword [esp + 0x10]
jmp 0x4043aa
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, eax
mov byte [esp + 4], al
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x40444d
cmp dword [esp + 0x24], 8
jb 0x404421
mov ecx, dword [esp + 0x10]
jmp 0x404425
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, eax
mov byte [esp], al
test ebp, ebp
je 0x404385
mov ecx, dword [esp + 8]
cmp ecx, edi
mov edx, edi
cmovb edi, ecx
sub edi, edx
movzx ebp, word [esp + 0x70]
test esi, esi
je 0x40437e
mov ecx, esi
push ebp
mov ebx, eax
call fcn.00403472
cmp ax, 0xffff
mov eax, ebx
mov ebx, dword [esp + 4]
jne 0x404382
mov byte [esp], 1
inc edi
jne 0x404364
and eax, 0xffffff00
test ebx, ebx
je 0x404419
cmp dword [esp + 0x24], 8
jb 0x404462
mov ebp, dword [esp + 0x10]
jmp 0x404466
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ecx
xor edi, edi
test esi, esi
je 0x4043d2
mov ebx, eax
mov eax, dword [esp + 0xc]
movzx eax, word [eax + edi*2]
mov ecx, esi
push eax
call fcn.00403472
cmp ax, 0xffff
mov eax, ebx
mov ebx, dword [esp + 4]
jne 0x4043d6
mov byte [esp], 1
inc edi
cmp ebx, edi
jne 0x4043b0
and eax, 0xffffff00
test ebp, ebp
je 0x404419
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
mov edi, ecx
cmovb edi, eax
sub edi, ecx
movzx ebp, word [esp + 0x70]
test esi, esi
je 0x404410
mov ecx, esi
push ebp
call fcn.00403472
cmp ax, 0xffff
jne 0x404414
mov byte [esp], 1
inc edi
jne 0x4043fe
jmp 0x40448c
mov ecx, eax
movzx eax, byte [esp]
jmp 0x404494
lea ecx, [esp + 0x10]
mov dword [esp], ecx
xor edi, edi
test esi, esi
je 0x404443
mov eax, dword [esp]
movzx eax, word [eax + edi*2]
mov ecx, esi
push eax
call fcn.00403472
cmp ax, 0xffff
jne 0x404448
mov byte [esp + 4], 1
inc edi
cmp ebx, edi
jne 0x40442a
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
and ecx, 0xffffff00
or ecx, eax
mov eax, ecx
jmp 0x40449a
lea ebp, [esp + 0x10]
mov dword [esp + 0xc], eax
xor edi, edi
test esi, esi
je 0x404483
movzx eax, word [ebp + edi*2]
mov ecx, esi
push eax
call fcn.00403472
cmp ax, 0xffff
jne 0x404487
mov byte [esp], 1
inc edi
cmp ebx, edi
jne 0x40446c
movzx eax, byte [esp]
mov ecx, dword [esp + 0xc]
or ecx, eax
mov eax, ecx
xor ebp, ebp
lea ecx, [esp + 0x64]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov ecx, eax
mov byte [esp + 4], al
cmp dword [esp + 8], ebx
je 0x4044ec
cmp dword [esp + 0x24], 8
jb 0x4044bc
mov ecx, dword [esp + 0x10]
jmp 0x4044c0
lea ecx, [esp + 0x10]
mov dword [esp], ecx
test esi, esi
je 0x4044e0
mov edi, eax
mov eax, dword [esp]
movzx eax, word [eax + ebx*2]
mov ecx, esi
push eax
call fcn.00403472
cmp ax, 0xffff
mov eax, edi
jne 0x4044e5
mov byte [esp + 4], 1
inc ebx
cmp dword [esp + 8], ebx
jne 0x4044c3
and eax, 0xffffff00
mov edi, eax
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x20], eax
test ebp, ebp
je 0x404522
movzx ebx, word [esp + 0x70]
test esi, esi
je 0x40451a
mov ecx, esi
push ebx
call fcn.00403472
cmp ax, 0xffff
jne 0x40451f
mov byte [esp + 4], 1
dec ebp
jne 0x404508
movzx eax, byte [esp + 4]
or edi, eax
mov eax, dword [esp + 0x60]
mov dword [eax], edi
mov edi, eax
mov dword [eax + 4], esi
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x40456a
mov ecx, dword [esp + 0x30]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x404560
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4045b9
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405899
add esp, 8
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x4045a5
mov ecx, dword [esp + 0x10]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x40459b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4045b9
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405899
add esp, 8
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00404efa
call fcn.004028b2
call fcn.0040db24