Function at 0x49d28f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 8
call fcn.005dc81a
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x6b42b5
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x10
call fcn.005dc81a
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx], 0x6b5720
push ebx
add ebx, 4
push ebx
push 8
call fcn.005dc81a
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 4
push ebx
push 8
call fcn.005dc81a
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 4
push ebx
push 0x10
call fcn.005dc81a
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, 3
mov dword [ebx], eax
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.00419888
pop ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0xc
call fcn.005dc81a
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x6b6b66
push ebx
mov eax, esp
push eax
call fcn.0042476f
pop ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, 0x6c9898
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a1d
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x49d403
push ebx
call fcn.005dc820
add esp, 4
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, 0x6c98b0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x6c98bd
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x49d447
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x49d457
push ebx
call fcn.005dc820
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x49d744
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0049daa8
mov ebx, dword [ebp - 4]
call fcn.0040294f
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x49d515
mov ebx, dword [ebp - 4]
call fcn.00401a51
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x49d4b3
push 0xe6
push 0x40596b7
push 4
call fcn.005dc826
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x49d4d0
push 0xe6
push 0x40596b7
push 1
call fcn.005dc826
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push 0x6b58f1
push dword [ebp - 0xc]
mov ecx, 3
call fcn.0040108c
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49d509
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
pop eax
pop ebx
pop ecx
jmp 0x49d47e
add esp, 0xc
push 0x6b58f1
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040108c
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49d544
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x49d566
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x49d562
imul eax, dword [ebx]
jmp 0x49d557
mov ecx, eax
test ecx, ecx
je 0x49d585
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x49d57e
push ebx
push eax
call fcn.005dc820
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x49d56c
call fcn.005dc820
add esp, 4
mov eax, 0x6b42b5
mov dword [ebp - 4], eax
push 1
push 1
push 1
push 1
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
push eax
mov eax, str.___u__1.8___
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x49d5dd
push ebx
call fcn.005dc820
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x49d73c
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x49d642
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.00406ba7
push reloc.WS2_32.dll_connect
push 0
push 0x6b4435
push reloc.WS2_32.dll_connect
push 0
push 0x6b58f1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x49d687
mov eax, 0x6b4435
push eax
push 6
mov ebx, 0x5ddf70
call fcn.005dc82c
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x49d6b1
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.00406ba7
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x49d6de
mov eax, 0x6b4435
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x49d6f2
mov eax, 0x6b4435
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x49d706
mov eax, 0x6b4435
push eax
push 6
mov ebx, 0x5ddf70
call fcn.005dc82c
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49d730
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
pop eax
pop ebx
pop ecx
jmp 0x49d5fa
add esp, 0xc
jmp 0x49d777
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x49d762
push eax
mov ebx, eax
call fcn.00401021
inc eax
push eax
call fcn.005dc81a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49d773
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.00406ba7
push reloc.WS2_32.dll_connect
push 0
push 0x6c98d5
push reloc.WS2_32.dll_connect
push 0
push 0x6c98d8
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x49d7b8
mov eax, 0x6b4435
push eax
push 6
mov ebx, 0x5ddf70
call fcn.005dc82c
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49d7e2
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.00406ba7
push reloc.WS2_32.dll_connect
push 0
push 0x6c98da
push reloc.WS2_32.dll_connect
push 0
push 0x6c98de
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x49d827
mov eax, 0x6b4435
push eax
push 6
mov ebx, 0x5ddf70
call fcn.005dc82c
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49d851
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x84b958
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
push 0x6c98e1
push dword [0x84b7b0]
mov ecx, 2
call fcn.0040108c
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49d8bd
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x49d8cd
push ebx
call fcn.005dc820
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x49d8f0
push 0x84b958
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, 0
jmp 0x49da0b
push 0x6b4d58
push dword [ebp - 0xc]
push str.SELECT_answer_FROM_reply_WHERE_problem_like_
mov ecx, 3
call fcn.0040108c
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49d93e
push ebx
call fcn.005dc820
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x49d975
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push 0x84b958
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, 0
jmp 0x49da0b
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x49d9b5
push ebx
call fcn.005dc820
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x34]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push 0x84b958
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
push 0x6b4435
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.00402bee
add esp, 8
cmp eax, 0
mov eax, 0
setne al
jmp 0x49da0b
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x49da2a
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x49da26
imul eax, dword [ebx]
jmp 0x49da1b
mov ecx, eax
test ecx, ecx
je 0x49da49
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x49da42
push ebx
push eax
call fcn.005dc820
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x49da30
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49da61
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x49da81
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x49da91
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.005dc820
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc