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

Disassembly:
sub esp, 0x190
push ebx
push ebp
or eax, 0xffffffff
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, dword [0x343e4874]
xor edi, edi
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
call sub.KERNEL32.dll_EnterCriticalSection
mov esi, dword [sym.imp.MSVCR90.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 + 0x24], eax
call esi
add esp, 0x10
mov dword [esp + 0x24], eax
cmp ebx, edi
je 0x342a44d0
cmp ebp, edi
je 0x342a44d0
cmp dword [esp + 0x14], edi
je 0x342a44d0
cmp eax, edi
je 0x342a44d0
push 0xbf8
call esi
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x342a44da
mov ebp, dword [esp + 0x1a4]
push ebp
call fcn.3420cb10
test eax, eax
je 0x342a44e4
mov esi, dword [esp + 0x1a8]
push esi
push ebp
call fcn.34207b13
test eax, eax
je 0x342a44ee
push esi
push ebp
call fcn.3421be4b
test eax, eax
je 0x342a44f8
mov ebx, dword [esp + 0x1b4]
add ebx, 4
cmp dword [esp + 0x1b8], 0x2c
mov dword [ebx], 0xffffffff
jb 0x342a451a
mov eax, dword [esp + 0x1ac]
cmp eax, edi
je 0x3424170c
cmp word [eax], di
je 0x342a4524
mov edx, dword [esp + 0x1b0]
cmp edx, edi
jne 0x342a4532
cmp eax, edi
je 0x34256e7b
cmp edx, edi
jne 0x342a4549
mov edx, dword [esp + 0x1a8]
push 0x12
mov ecx, 0x30
mov esi, 0x34241a50
lea edi, [esp + 0xbc]
push 4
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
push ecx
push edx
push ebp
call fcn.34204df7
test eax, eax
jl 0x342a457b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1a8]
push 8
push 4
mov dword [esp + 0xcc], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x174], eax
lea eax, [esp + 0x50]
push eax
push ecx
push ebp
call fcn.34204df7
mov esi, eax
test esi, esi
jl 0x342419e4
mov eax, dword [esp + 0x48]
cmp eax, 0x10000
je 0x34256e88
cmp eax, 0x10001
je 0x34256e88
mov edx, dword [esp + 0x1ac]
test edx, edx
je 0x342417fd
mov ecx, dword [esp + 0x1a8]
lea eax, [esp + 0x34]
push eax
push ecx
mov esi, ebp
call fcn.342406d1
mov esi, eax
test esi, esi
jl 0x342419e4
mov eax, dword [esp + 0x1b4]
add eax, 0xc
xor edi, edi
push eax
push ebx
cmp dword [esp + 0x34], edi
jne 0x342a4582
push 8
push 8
lea ecx, [esp + 0xc8]
push ecx
push ebp
call fcn.34299806
mov esi, eax
cmp esi, edi
jl 0x342419e4
mov ebx, dword [esp + 0x1ac]
test ebx, ebx
je 0x34256ea7
mov eax, dword [esp + 0x1a8]
push 1
push 0
lea edx, [esp + 0x4c]
push edx
push ebx
push eax
push ebp
call fcn.3421b5e1
mov esi, eax
test esi, esi
jl 0x34256e95
push 0xffffffffffffffff
mov edi, 0x34241b10
push ebx
mov esi, dword [esp + 0x1c]
push 0x92
add esi, 8
push esi
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
push esi
call fcn.341f2ad9
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x10]
push edx
push 0x10
add eax, eax
push 4
mov dword [ecx + 4], eax
add eax, 8
push eax
mov eax, dword [esp + 0x1b8]
push ecx
push edi
push eax
push ebp
mov dword [ecx], 0xa
call fcn.3425182f
mov esi, eax
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test esi, esi
jl 0x342a4853
mov ecx, dword [esp + 0x10]
push 0
lea ebx, [esp + 0x50]
mov edi, ebp
mov dword [esp + 0x54], ecx
call fcn.34255af0
mov esi, eax
test esi, esi
jl 0x34256e95
mov esi, dword [esp + 0x1b4]
mov edx, esi
mov ecx, ebx
lea eax, [esp + 0x78]
call fcn.3424adc4
mov ecx, dword [esp + 0x10]
push 0
push 0
push SysReAllocString
push 8
lea edx, [esp + 0x88]
push edx
lea eax, [esi + 4]
mov eax, dword [eax]
push eax
push ecx
push ebp
call fcn.34250726
mov esi, eax
cmp esi, 0xfffff9bd
jne 0x34256e95
mov eax, dword [esp + 0x34]
cmp ax, 1
jne 0x34257008
test byte [esp + 0x44], 1
jne 0x342a4804
mov eax, dword [esp + 0x1b4]
mov ecx, dword [esp + 0x1a8]
push eax
push ecx
push ebp
call fcn.3424aded
mov esi, eax
test esi, esi
jl 0x34256e95
mov edx, dword [esp + 0x10]
push edx
push ebp
call fcn.34207940
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x1b0], 0
jne 0x342a4838
cmp dword [esp + 0x1ac], 0
je 0x34257e5f
cmp word [esp + 0x34], 6
je 0x34257e5f
mov edi, dword [esp + 0x1b4]
mov ecx, dword [edi + 4]
push 0
push SysReAllocString
push ecx
push ebp
call fcn.34209c8c
cmp eax, 0xfffff9bd
jne 0x34256936
cmp dword [esp + 0x1b0], 0
mov dword [edi + 8], 0
jne 0x342a4afa
xor esi, esi
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.MSVCR90.dll_free]
test eax, eax
je 0x342419f8
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x34241a06
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x34241a14
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x34241a22
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x34241a30
push eax
call edi
add esp, 4
mov ecx, dword [0x343e4874]
push ecx
call fcn.341f2687
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret 0x18
test esi, esi
jl 0x34256e95
mov edx, dword [edi + 4]
push 0
push SysReAllocString
push edx
push ebp
call fcn.34209c8c
mov esi, eax
test esi, esi
jl 0x34256e95
mov ecx, dword [edi + 4]
push 0
push 0x28
lea eax, [esp + 0x180]
push eax
push ecx
push ebp
call fcn.342096c2
mov esi, eax
test esi, esi
jl 0x34256e95
mov eax, dword [esp + 0x198]
mov dword [edi + 8], eax
jmp 0x342419e2
cmp edx, edi
je 0x3424172b
jmp 0x342a4553
mov dword [esp + 0x2c], 1
jmp 0x342417d4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x342a4b04
jmp 0x342a4b0b
mov eax, dword [esp + 0x1b0]
test eax, eax
jne 0x342a47ea
mov eax, dword [esp + 0x1a8]
push 4
push 0x34226648
lea edx, [esp + 0x18]
push edx
push eax
push ebp
call fcn.34208924
mov esi, eax
test esi, esi
jl 0x342a484b
mov ecx, dword [esp + 0x10]
push ebx
push SysReAllocString
push ecx
push ebp
call fcn.34209c8c
mov esi, eax
cmp esi, 0xfffff9bd
jne 0x342418b7
jmp 0x34241965
cmp ax, 6
je 0x3424193a
cmp ax, 4
jne 0x34241945
jmp 0x3424193a
push 0xffffffffffffffff
push 0x34257f18
push 0x5fc
push ebx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
xor esi, esi
add esp, 0x10
cmp dword [esp + 0x1ac], esi
jne 0x342a4866
mov dword [esp + 0x2c], esi
push ebp
call fcn.34207a59
push 0
push eax
mov dword [esp + 0x40], eax
call fcn.34258008
mov ecx, dword [esp + 0x1a8]
lea edx, [esp + 0x20]
push edx
push 0x10
push 4
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
push eax
push esi
push ebx
push ecx
push ebp
call fcn.3425182f
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.34258008
test esi, esi
jl 0x34256e95
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
push ebp
call fcn.34209c8c
mov esi, eax
test esi, esi
je 0x342a48b5
cmp esi, 0xfffff9bd
jne 0x342a4aed
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.34207940
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
jmp 0x342419aa
mov esi, 0xfffffc0d
jmp 0x342419e4
mov esi, 0xfffffc0d
jmp 0x342419e4
mov esi, 0xfffffbb0
jmp 0x342419e4
mov esi, 0xfffffc0e
jmp 0x342419e4
push esi
call fcn.342141cd
test eax, eax
je 0x342a4510
push esi
call fcn.3421096d
test eax, eax
je 0x342416da
mov esi, 0xfffffc17
jmp 0x342419e4
mov esi, 0xfffffbf2
jmp 0x342419e4
xor eax, eax
mov dword [esp + 0x1ac], eax
jmp 0x3424170c
cmp word [edx], di
jne 0x3424171b
xor edx, edx
mov dword [esp + 0x1b0], edx
jmp 0x3424171b
mov esi, 0xfffffc15
jmp 0x342419e4
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push 0x82
push ecx
push 0x200
push eax
call fcn.3430a529
mov esi, eax
cmp esi, edi
jge 0x3424172b
jmp 0x342419e4
mov esi, eax
jmp 0x342419e4
push 0xc
push 8
lea edx, [esp + 0xc8]
push edx
push ebp
mov dword [esp + 0xe4], edi
mov dword [esp + 0x12c], edi
call fcn.34299806
mov esi, eax
cmp esi, edi
jl 0x342419e4
cmp dword [esp + 0x1b0], edi
je 0x342a45c9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push edi
push 0x2c
lea eax, [esp + 0x54]
push eax
push ecx
push edx
jmp 0x342a45e6
mov eax, dword [esp + 0x1ac]
xor ecx, ecx
test eax, eax
setne cl
lea edx, [esp + 0x4c]
lea ecx, [ecx + ecx + 1]
push ecx
push 0x2c
push edx
push 0
push eax
mov eax, dword [esp + 0x1bc]
push eax
push ebp
call fcn.343105f7
mov esi, eax
test esi, esi
jge 0x342a4610
cmp esi, 0xfffffc13
jne 0x34256e95
mov esi, 0xfffffae7
jmp 0x34256e95
mov edi, dword [esp + 0x1b4]
mov edx, edi
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x78]
call fcn.3424adc4
mov edx, dword [ebx]
mov eax, dword [esp + 0x50]
push 0
push 0
push SysReAllocString
push 8
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
push ebp
call fcn.34250726
mov ecx, dword [esp + 0x50]
push ecx
push ebp
mov esi, eax
call fcn.34207940
cmp esi, 0xfffff9bd
jne 0x34256e95
mov eax, dword [ebx]
mov edx, dword [esp + 0x54]
push 0
push SysReAllocString
push eax
push ebp
mov dword [edi + 8], edx
call fcn.34209c8c
mov esi, eax
test esi, esi
jge 0x342a4689
jmp 0x342a478c
mov edi, dword [esp + 0x1b4]
mov eax, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x44]
push edx
mov ecx, 0x5b
mov word [eax], cx
mov ecx, dword [ebx]
push 0x95
add eax, 2
push eax
mov eax, dword [edi + 0x1c]
push eax
push ecx
push ebp
call fcn.34206bf8
mov esi, eax
test esi, esi
jl 0x34256e95
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
shr edi, 1
push 0
inc edi
mov edx, 0x5d
mov word [eax + edi*2], dx
push 0
inc edi
mov ecx, 0x2e
mov word [eax + edi*2], cx
lea edx, [esp + 0x44]
push edx
inc edi
lea edx, [eax + edi*2]
mov eax, dword [esp + 0x1c0]
mov ecx, 0x96
sub ecx, edi
push ecx
mov ecx, dword [ebx]
push edx
add eax, 0xc
mov eax, dword [eax]
push eax
push ecx
push ebp
call fcn.34206bf8
mov esi, eax
test esi, esi
jl 0x34256e95
mov eax, dword [ebx]
mov edx, dword [esp + 0x3c]
push 2
push eax
shr edx, 1
push ebp
add edi, edx
call fcn.3420925c
mov esi, eax
test esi, esi
jl 0x34256e95
mov eax, dword [esp + 0x1b4]
mov edx, dword [esp + 0x14]
push 0
push 0
lea ecx, [edi + edi]
push ecx
mov ecx, dword [ebx]
push edx
add eax, 0xc
mov eax, dword [eax]
push eax
push ecx
push ebp
call fcn.3420a01e
mov esi, eax
test esi, esi
jl 0x34256e95
mov edx, dword [ebx]
push 0
push 0
push 0
push edx
push ebp
call fcn.3420a15b
mov esi, eax
test esi, esi
jl 0x34256e95
mov eax, dword [ebx]
push 0
push 1
push eax
push ebp
call fcn.34209c8c
mov esi, eax
test esi, esi
jge 0x342a4682
cmp esi, 0xfffff9bd
je 0x342a479c
test esi, esi
jl 0x34256e95
mov ecx, dword [ebx]
push 0
push 0xb
push 0x342a507c
push 0
push 0x3422700c
push ecx
push ebp
call fcn.34261ac1
mov esi, eax
test esi, esi
jl 0x34256e95
mov edx, dword [ebx]
push 0
push SysReAllocString
push edx
push ebp
call fcn.34209c8c
mov esi, eax
cmp esi, 0xfffff9bd
je 0x342419e2
test esi, esi
jge 0x342419e2
jmp 0x34256e95
mov ecx, dword [esp + 0x18]
cmp word [ecx], di
jne 0x3424197a
push 0xffffffffffffffff
mov edi, 0x342a4b40
push eax
jmp 0x3424186a
mov eax, dword [esp + 0x1b4]
mov ecx, dword [esp + 0x1ac]
push 8
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x1b0]
push eax
push ecx
push edx
push ebp
call fcn.3430b0b5
mov esi, eax
test esi, esi
jge 0x34241945
jmp 0x34256e95
mov eax, dword [esp + 0x18]
cmp word [eax], 0
jne 0x342a48ec
jmp 0x342419aa
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
cmp esi, 0xfffffae7
jne 0x34256e95
xor esi, esi
jmp 0x34241982
push 0x5fc
push ebx
push 0x342a4fb8
call dword [sym.imp.MSO.dll_Ordinal_3084]
mov ecx, dword [esp + 0x1ac]
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
push 0x92
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
lea eax, [esi + 8]
push eax
call fcn.341fd760
mov dword [esi + 4], eax
add eax, 8
mov dword [esi], 0xa
mov dword [esp + 0x2c], eax
jmp 0x34257e88
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.34206bf8
mov esi, eax
test esi, esi
jl 0x34256e95
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
shr edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov edx, dword [esp + 0x18]
push edx
call fcn.3430a1b1
test eax, eax
je 0x342a4acc
mov eax, edx
push eax
push eax
push eax
push eax
push 0x342a4be0
push 0xffffffffffffffff
push 0x5fc
push ebx
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x20
test eax, eax
jl 0x342a4ae3
xor eax, eax
mov word [ebx + 0xbf6], ax
cmp dword [esp + 0x1ac], eax
je 0x342a499c
push ebx
call fcn.341f2ad9
mov ecx, dword [esp + 0x1b0]
push 0xffffffffffffffff
push ecx
push 0x41
push edi
lea esi, [ebx + eax*2]
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
push edi
call fcn.341f2ad9
add esp, 0x18
push 0
push 0x82
lea edx, [esp + 0x30]
push edx
push edi
mov dword [esp + 0x38], eax
call fcn.343762d0
mov ecx, dword [esp + 0x28]
push edi
xor eax, eax
push edi
mov edx, esi
mov word [edi + ecx*2], ax
sub edx, ebx
push 0x342a4ff0
sar edx, 1
mov eax, 0x5fc
push 0xffffffffffffffff
sub eax, edx
push eax
push esi
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x18
jmp 0x342a4a08
cmp dword [esp + 0x1b0], 0
je 0x342a4a08
push ebx
call fcn.341f2ad9
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push ecx
push 0x41
push edi
lea esi, [ebx + eax*2]
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
push edi
call fcn.341f2ad9
add esp, 0x18
push 0
push 0x82
lea edx, [esp + 0x30]
push edx
push edi
mov dword [esp + 0x38], eax
call fcn.343762d0
mov ecx, dword [esp + 0x28]
xor eax, eax
push edi
mov edx, esi
mov word [edi + ecx*2], ax
sub edx, ebx
push 0x342a5040
sar edx, 1
mov eax, 0x5fc
push 0xffffffffffffffff
sub eax, edx
push eax
push esi
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x14
mov edx, dword [esp + 0x1a8]
lea ecx, [esp + 0x10]
push ecx
push 0x10
push 4
push 0
push 0
push ebx
push edx
push ebp
call fcn.3425182f
mov esi, eax
test esi, esi
jl 0x342a4acc
mov eax, dword [esp + 0x10]
push 1
lea ebx, [esp + 0x50]
mov edi, ebp
mov dword [esp + 0x54], eax
call fcn.34255af0
mov esi, eax
test esi, esi
jl 0x34256e95
mov edi, dword [esp + 0x1b4]
mov edx, edi
mov ecx, ebx
lea eax, [esp + 0x78]
call fcn.3424adc4
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x10]
push 0
push 0
push SysReAllocString
push 8
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
push ebp
call fcn.34250726
mov esi, eax
cmp esi, 0xfffff9bd
je 0x342a4a95
test esi, esi
jl 0x34256e95
mov eax, 1
test eax, eax
je 0x342a4ab7
mov ecx, dword [esp + 0x1a8]
push edi
push ecx
push ebp
call fcn.3424aded
mov esi, eax
test esi, esi
jl 0x34256e95
mov edx, dword [esp + 0x10]
push edx
push ebp
call fcn.34207940
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x342419aa
push 0
push 1
push eax
jmp 0x34257ede
mov esi, 0xfffffc16
jmp 0x34256e95
test esi, esi
jge 0x34257efa
jmp 0x34256e95
mov esi, 0xfffffae7
jmp 0x34256e95
push eax
push ebp
call fcn.34207940
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx + 4]
cmp eax, 0xffffffff
je 0x342a4b21
push eax
push ebp
call fcn.34207940
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x342419e4
push eax
push ebp
call fcn.34207940
jmp 0x342419e4