Function at 0x3422c5d2
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
or eax, 0xffffffff
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, dword [0x3437bd34]
xor edi, edi
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
call sub.kernel32.dll_EnterCriticalSection
mov esi, dword [sym.imp.msvcr80.dll_malloc]
push 0x82
call esi
mov ebx, eax
push 0x200
mov dword [esp + 0x38], ebx
call esi
mov ebp, eax
push 0x12c
mov dword [esp + 0x24], ebp
call esi
push 0x82
mov dword [esp + 0x20], eax
call esi
add esp, 0x10
cmp ebx, edi
mov dword [esp + 0x1c], eax
je 0x34238fa8
cmp ebp, edi
je 0x34238fa8
cmp dword [esp + 0x10], edi
je 0x34238fa8
cmp eax, edi
je 0x34238fa8
push 0xbf8
call esi
add esp, 4
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x34238fa8
mov ebp, dword [esp + 0x1b8]
push ebp
call fcn.342087d5
test eax, eax
je 0x34294a5c
mov esi, dword [esp + 0x1bc]
push esi
push ebp
call fcn.342040fe
test eax, eax
je 0x34294a66
push esi
push ebp
call fcn.34216989
test eax, eax
je 0x34294a70
mov ebx, dword [esp + 0x1c8]
add ebx, 4
cmp dword [esp + 0x1cc], 0x2c
mov dword [ebx], 0xffffffff
jb 0x34294a92
mov eax, dword [esp + 0x1c0]
cmp eax, edi
je 0x3422c6e1
cmp word [eax], di
je 0x34294a9c
mov edx, dword [esp + 0x1c4]
cmp edx, edi
jne 0x34294aaa
cmp eax, edi
je 0x34238c70
cmp edx, edi
jne 0x34294ac1
mov ecx, 0x30
mov esi, 0x3422ca58
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x1c0]
mov edx, ebp
call fcn.3422c076
mov esi, eax
test esi, esi
jl 0x3422c9f1
mov eax, dword [esp + 0xc0]
push 8
push 4
lea edx, [esp + 0x4c]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x170], eax
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x1c4]
push edx
push eax
push ebp
call fcn.342018bf
mov esi, eax
test esi, esi
jl 0x3422c9f1
mov eax, dword [esp + 0x44]
cmp eax, 0x10000
je 0x34238f8f
cmp eax, 0x10001
je 0x34238f8f
mov edx, dword [esp + 0x1c0]
test edx, edx
je 0x3422c7d6
mov eax, dword [esp + 0x1bc]
lea ecx, [esp + 0x34]
push ecx
push eax
mov esi, ebp
call fcn.3422b6c0
mov esi, eax
test esi, esi
jl 0x3422c9f1
xor edi, edi
cmp dword [esp + 0x2c], edi
jne 0x34294af3
mov ecx, dword [esp + 0x1c8]
add ecx, 0xc
push ecx
push ebx
push 8
push 8
lea edx, [esp + 0xdc]
push edx
push ebp
call fcn.3424fbd5
mov esi, eax
cmp esi, edi
jl 0x3422c9f1
mov eax, dword [esp + 0x1c0]
test eax, eax
je 0x34238c7d
mov edx, dword [esp + 0x1bc]
push 0
lea ecx, [esp + 0x44]
push ecx
push eax
push edx
push ebp
call fcn.34215f6c
mov esi, eax
test esi, esi
jl 0x34238f9c
mov eax, dword [esp + 0x1c0]
mov edi, 0x3422cb18
mov ebx, dword [esp + 0x10]
push 0x92
lea esi, [ebx + 8]
push esi
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x3422c85e
sub eax, edx
sar eax, 1
lea edx, [esp + 0x14]
push edx
push 0x10
add eax, eax
push 4
mov dword [ebx + 4], eax
add eax, 8
push eax
mov eax, dword [esp + 0x1cc]
push ebx
push edi
push eax
push ebp
mov dword [ebx], 0xa
call fcn.3422d86c
mov esi, eax
test esi, esi
mov edi, dword [esp + 0x1c]
jl 0x34294d98
mov ecx, dword [esp + 0x14]
push 0
lea ebx, [esp + 0x4c]
mov edi, ebp
mov dword [esp + 0x50], ecx
call fcn.3423cc3b
mov esi, eax
test esi, esi
jl 0x34238f9c
mov esi, dword [esp + 0x1c8]
mov edx, esi
mov ecx, ebx
lea eax, [esp + 0x74]
call fcn.3423c647
mov ecx, dword [esp + 0x14]
push 0
push 0
push SysReAllocString
push 8
lea edx, [esp + 0x84]
push edx
lea eax, [esi + 4]
mov eax, dword [eax]
push eax
push ecx
push ebp
call fcn.3423ce48
mov esi, eax
cmp esi, 0xfffff9bd
jne 0x34238f9c
mov eax, dword [esp + 0x34]
cmp ax, 1
je 0x3422c91c
cmp ax, 6
jne 0x34238f80
test byte [esp + 0x40], 1
je 0x3422c952
mov eax, dword [esp + 0x1c8]
mov ecx, dword [esp + 0x1c0]
push 8
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x1c4]
push eax
push ecx
push edx
push ebp
call fcn.3427b4c9
mov esi, eax
test esi, esi
jl 0x34238f9c
mov eax, dword [esp + 0x1c8]
mov ecx, dword [esp + 0x1bc]
push eax
push ecx
push ebp
call fcn.3423c670
mov esi, eax
test esi, esi
jl 0x34238f9c
mov edx, dword [esp + 0x14]
push edx
push ebp
call fcn.34203f26
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x1c4], 0
jne 0x34294d81
cmp dword [esp + 0x1c0], 0
je 0x3423cfe7
cmp word [esp + 0x34], 6
je 0x3423cfe7
mov edi, dword [esp + 0x1c8]
mov ecx, dword [edi + 4]
push 0
push SysReAllocString
push ecx
push ebp
call fcn.34205d4e
cmp eax, 0xfffff9bd
jne 0x3424507f
cmp dword [esp + 0x1c4], 0
mov dword [edi + 8], 0
jne 0x34294ff2
xor esi, esi
mov eax, dword [esp + 0x30]
test eax, eax
mov edi, dword [sym.imp.msvcr80.dll_free]
je 0x3422ca05
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x3422ca13
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x3422ca21
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x3422ca2f
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x3422ca3d
push eax
call edi
add esp, 4
mov eax, dword [0x3437bd34]
push eax
call sub.kernel32.dll_LeaveCriticalSection
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret 0x18
cmp edx, edi
je 0x3422c700
jmp 0x34294acb
mov eax, dword [esp + 0x1c4]
test eax, eax
jne 0x34294d6a
mov ecx, dword [esp + 0x1bc]
push 4
push 0x3421c938
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
call fcn.34204e4c
mov esi, eax
test esi, esi
jl 0x34294d90
mov edx, dword [esp + 0x14]
push 0
push SysReAllocString
push edx
push ebp
call fcn.34205d4e
mov esi, eax
cmp esi, 0xfffff9bd
je 0x3422c972
mov ebx, dword [esp + 0x10]
jmp 0x3422c897
xor esi, esi
mov dword [esp + 0x2c], esi
jmp 0x3423d04a
cmp ax, 4
jne 0x3422c952
jmp 0x3422c91c
mov dword [esp + 0x2c], 1
jmp 0x3422c7ad
mov edi, dword [esp + 0x1c8]
jmp 0x34294ff7
mov esi, 0xfffffc0d
jmp 0x3422c9f1
mov esi, dword [esp + 0x24]
push 0x5fc
push esi
push 0x3423d0d8
call dword [sym.imp.MSO.dll_Ordinal_6877]
cmp dword [esp + 0x1c0], 0
je 0x34238cd9
push 0x5fc
push esi
push 0x3423d1c8
call dword [sym.imp.MSO.dll_Ordinal_6873]
mov ecx, dword [esp + 0x1c0]
push 0x92
lea esi, [ebx + 8]
push esi
push ecx
call dword [sym.imp.MSO.dll_Ordinal_6877]
push esi
call fcn.341fb242
mov dword [ebx + 4], eax
add eax, 8
mov dword [ebx], 0xa
mov esi, ebx
mov dword [esp + 0x2c], eax
push ebp
call fcn.3420403f
mov ebx, eax
push 0
push ebx
call fcn.3423bdb9
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c0]
push 0x10
push 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
push eax
push esi
push ecx
push edx
push ebp
call fcn.3422d86c
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
push ebx
call fcn.3423bdb9
test esi, esi
jl 0x34238f9c
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
push ebp
call fcn.34205d4e
mov esi, eax
test esi, esi
je 0x34294dab
cmp esi, 0xfffff9bd
jne 0x34294fe5
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.34203f26
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
jmp 0x3422c9b7
test esi, esi
jl 0x34238f9c
mov edx, dword [edi + 4]
push 0
push SysReAllocString
push edx
push ebp
call fcn.34205d4e
mov esi, eax
test esi, esi
jl 0x34238f9c
mov ecx, dword [edi + 4]
push 0
push 0x28
lea eax, [esp + 0x194]
push eax
push ecx
push ebp
call fcn.342058dd
mov esi, eax
test esi, esi
jl 0x34238f9c
mov edx, dword [esp + 0x1ac]
mov dword [edi + 8], edx
jmp 0x3422c9ef
mov esi, 0xfffffbb0
jmp 0x3422c9f1
mov esi, 0xfffffc0e
jmp 0x3422c9f1
push esi
call fcn.3420fb54
test eax, eax
je 0x34294a88
push esi
call fcn.3420c2f8
test eax, eax
je 0x3422c6af
mov esi, 0xfffffc17
jmp 0x3422c9f1
mov esi, 0xfffffbf2
jmp 0x3422c9f1
xor eax, eax
mov dword [esp + 0x1c0], eax
jmp 0x3422c6e1
cmp word [edx], di
jne 0x3422c6f0
xor edx, edx
mov dword [esp + 0x1c4], edx
jmp 0x3422c6f0
mov esi, 0xfffffc15
jmp 0x3422c9f1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push 0x82
push ecx
push 0x200
push eax
call fcn.342d2c7c
mov esi, eax
cmp esi, edi
jge 0x3422c700
jmp 0x3422c9f1
mov eax, dword [esp + 0x1c8]
add eax, 0xc
push eax
push ebx
push 0xc
push 8
lea ecx, [esp + 0xdc]
push ecx
push ebp
mov dword [esp + 0xf8], edi
mov dword [esp + 0x140], edi
call fcn.3424fbd5
mov esi, eax
cmp esi, edi
jl 0x3422c9f1
cmp dword [esp + 0x1c4], edi
lea edx, [esp + 0x48]
je 0x34294b4e
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push edi
push 0x2c
push edx
mov edx, dword [esp + 0x1c8]
push eax
push ecx
push edx
jmp 0x34294b6f
mov eax, dword [esp + 0x1c0]
xor ecx, ecx
test eax, eax
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
push 0x2c
push edx
push 0
push eax
mov eax, dword [esp + 0x1d0]
push eax
push ebp
call fcn.342d8465
mov esi, eax
test esi, esi
jge 0x34294b91
cmp esi, 0xfffffc13
jne 0x34238f9c
mov esi, 0xfffffae7
jmp 0x34238f9c
mov edi, dword [esp + 0x1c8]
mov edx, edi
lea ecx, [esp + 0x48]
lea eax, [esp + 0x74]
call fcn.3423c647
mov edx, dword [ebx]
mov eax, dword [esp + 0x4c]
push 0
push 0
push SysReAllocString
push 8
lea ecx, [esp + 0x84]
push ecx
push edx
push eax
push ebp
call fcn.3423ce48
mov ecx, dword [esp + 0x4c]
push ecx
push ebp
mov esi, eax
call fcn.34203f26
cmp esi, 0xfffff9bd
jne 0x34238f9c
mov eax, dword [ebx]
mov edx, dword [esp + 0x50]
push 0
push SysReAllocString
push eax
push ebp
mov dword [edi + 8], edx
call fcn.34205d4e
mov esi, eax
test esi, esi
jge 0x34294c0a
jmp 0x34294d0e
mov edi, dword [esp + 0x1c8]
mov eax, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
mov word [eax], 0x5b
mov edx, dword [edi + 0x1c]
push 0x95
add eax, 2
push eax
mov eax, dword [ebx]
push edx
push eax
push ebp
call fcn.342034df
mov esi, eax
test esi, esi
jl 0x34238f9c
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
shr edi, 1
mov word [eax + edi*2 + 2], 0x5d
push 0
add edi, 1
mov word [eax + edi*2 + 2], 0x2e
push 0
add edi, 1
add edi, 1
lea ecx, [esp + 0x44]
push ecx
mov edx, 0x96
sub edx, edi
push edx
mov edx, dword [ebx]
lea eax, [eax + edi*2]
push eax
mov eax, dword [esp + 0x1dc]
mov ecx, dword [eax + 0xc]
add eax, 0xc
push ecx
push edx
push ebp
call fcn.342034df
mov esi, eax
test esi, esi
jl 0x34238f9c
mov ecx, dword [ebx]
mov eax, dword [esp + 0x3c]
push 2
push ecx
shr eax, 1
push ebp
add edi, eax
call fcn.34205530
mov esi, eax
test esi, esi
jl 0x34238f9c
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [edi + edi]
push edx
mov edx, dword [ebx]
push eax
mov eax, dword [esp + 0x1d8]
mov ecx, dword [eax + 0xc]
add eax, 0xc
push ecx
push edx
push ebp
call fcn.3420603c
mov esi, eax
test esi, esi
jl 0x34238f9c
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
push ebp
call fcn.3420615c
mov esi, eax
test esi, esi
jl 0x34238f9c
mov ecx, dword [ebx]
push 0
push 1
push ecx
push ebp
call fcn.34205d4e
mov esi, eax
test esi, esi
jge 0x34294c03
cmp esi, 0xfffff9bd
je 0x34294d1e
test esi, esi
jl 0x34238f9c
mov edx, dword [ebx]
push 0
push 0xb
push 0x34295534
push 0
push 0x3421d22c
push edx
push ebp
call fcn.34263243
mov esi, eax
test esi, esi
jl 0x34238f9c
mov eax, dword [ebx]
push 0
push SysReAllocString
push eax
push ebp
call fcn.34205d4e
mov esi, eax
cmp esi, 0xfffff9bd
je 0x34294d63
test esi, esi
jl 0x34238f9c
xor esi, esi
jmp 0x3422c9f1
mov ecx, dword [esp + 0x18]
cmp word [ecx], di
jne 0x3422c987
mov edi, 0x34295030
jmp 0x3422c845
mov eax, dword [esp + 0x18]
cmp word [eax], 0
jne 0x34294de2
jmp 0x3422c9b7
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
cmp esi, 0xfffffae7
jne 0x34238f9c
xor esi, esi
jmp 0x3422c98f
mov ecx, dword [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
push edx
push 0x200
push eax
push esi
push ecx
push ebp
call fcn.342034df
mov esi, eax
test esi, esi
jl 0x34238f9c
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
shr edx, 1
mov word [eax + edx*2], 0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.342d2926
test eax, eax
je 0x34294fdb
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push eax
push eax
push eax
push eax
push 0x342950d0
push 0x5fc
push esi
call fcn.342d38b8
add esp, 0x1c
test eax, eax
jl 0x34294fdb
mov edx, dword [esp + 0x1c0]
test edx, edx
mov word [esi + 0xbf6], 0
je 0x34294ea7
mov eax, esi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x34294e34
push 0x41
sub eax, ebx
push edi
sar eax, 1
push edx
lea ebx, [esi + eax*2]
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x34294e55
push 0
sub eax, edx
push 0x82
lea edx, [esp + 0x30]
push edx
sar eax, 1
push edi
mov dword [esp + 0x38], eax
call fcn.3424fbd5
mov eax, dword [esp + 0x28]
push edi
mov ecx, ebx
sub ecx, esi
push edi
sar ecx, 1
mov edx, 0x5fc
push 0x342954a8
sub edx, ecx
push edx
push ebx
mov word [edi + eax*2], 0
call fcn.342d38b8
add esp, 0x14
jmp 0x34294f2a
cmp dword [esp + 0x1c4], 0
je 0x34294f2a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x34294eb6
sub eax, edx
sar eax, 1
push 0x41
lea ebx, [esi + eax*2]
mov eax, dword [esp + 0x34]
push edi
push eax
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x34294ede
push 0
push 0x82
lea ecx, [esp + 0x30]
sub eax, edx
push ecx
sar eax, 1
push edi
mov dword [esp + 0x38], eax
call fcn.3424fbd5
mov edx, dword [esp + 0x28]
mov eax, ebx
sub eax, esi
push edi
sar eax, 1
mov ecx, 0x5fc
push 0x342954f8
sub ecx, eax
push ecx
push ebx
mov word [edi + edx*2], 0
call fcn.342d38b8
add esp, 0x10
mov eax, dword [esp + 0x1bc]
lea edx, [esp + 0x14]
push edx
push 0x10
push 4
push 0
push 0
push esi
push eax
push ebp
call fcn.3422d86c
mov esi, eax
test esi, esi
jl 0x34294fc4
mov ecx, dword [esp + 0x14]
push 1
lea ebx, [esp + 0x4c]
mov edi, ebp
mov dword [esp + 0x50], ecx
call fcn.3423cc3b
mov esi, eax
test esi, esi
jl 0x34238f9c
mov esi, dword [esp + 0x1c8]
mov edx, esi
mov ecx, ebx
lea eax, [esp + 0x74]
call fcn.3423c647
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
push 0
push 0
push SysReAllocString
push 8
lea edx, [esp + 0x84]
push edx
push eax
push ecx
push ebp
call fcn.3423ce48
mov esi, eax
cmp esi, 0xfffff9bd
je 0x34294fb3
test esi, esi
jl 0x34238f9c
mov edx, dword [esp + 0x14]
push edx
push ebp
call fcn.34203f26
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x3422c9b7
push 0
push 1
push eax
jmp 0x3423d09e
mov esi, 0xfffffc16
jmp 0x34238f9c
test esi, esi
jge 0x3423d0ba
jmp 0x34238f9c
mov esi, 0xfffffae7
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x34295007
push eax
push ebp
call fcn.34203f26
mov edi, dword [edi + 4]
cmp edi, 0xffffffff
je 0x34295016
push edi
push ebp
call fcn.34203f26
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x3422c9f1
push eax
push ebp
call fcn.34203f26
jmp 0x3422c9f1